Mercurial > vim
comparison src/vim.h @ 2197:898bc87c6600 vim73
One more fix for defining uint32_t.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 18 May 2010 21:49:58 +0200 |
parents | f9aec8acb188 |
children | 014a996ac896 |
comparison
equal
deleted
inserted
replaced
2196:99e5a139e67a | 2197:898bc87c6600 |
---|---|
29 /* ============ the header file puzzle (ca. 50-100 pieces) ========= */ | 29 /* ============ the header file puzzle (ca. 50-100 pieces) ========= */ |
30 | 30 |
31 #ifdef HAVE_CONFIG_H /* GNU autoconf (or something else) was here */ | 31 #ifdef HAVE_CONFIG_H /* GNU autoconf (or something else) was here */ |
32 # include "auto/config.h" | 32 # include "auto/config.h" |
33 # define HAVE_PATHDEF | 33 # define HAVE_PATHDEF |
34 | |
35 /* Avoid a problem when stdint.h gets included later, autoconf defines | |
36 * uint32_t when it is not typedef'ed. */ | |
37 # define __uint32_t_defined | |
34 | 38 |
35 /* | 39 /* |
36 * Check if configure correctly managed to find sizeof(int). If this failed, | 40 * Check if configure correctly managed to find sizeof(int). If this failed, |
37 * it becomes zero. This is likely a problem of not being able to run the | 41 * it becomes zero. This is likely a problem of not being able to run the |
38 * test program. Other items from configure may also be wrong then! | 42 * test program. Other items from configure may also be wrong then! |
2073 | 2077 |
2074 /* uint32_t may be defined by configure, but perh.h may indirectly include | 2078 /* uint32_t may be defined by configure, but perh.h may indirectly include |
2075 * stdint.h which tries to typedef uint32_t and fails. */ | 2079 * stdint.h which tries to typedef uint32_t and fails. */ |
2076 # ifdef uint32_t | 2080 # ifdef uint32_t |
2077 # undef uint32_t | 2081 # undef uint32_t |
2082 # undef __uint32_t_defined | |
2078 # endif | 2083 # endif |
2079 | 2084 |
2080 # ifdef __BORLANDC__ | 2085 # ifdef __BORLANDC__ |
2081 /* Borland has the structure stati64 but not _stati64 */ | 2086 /* Borland has the structure stati64 but not _stati64 */ |
2082 # define _stati64 stati64 | 2087 # define _stati64 stati64 |