summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-18 21:17:10 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-18 21:17:10 +0200
commit4a9b19ace80d218ca85e4e10a32ed8d0135a48a5 (patch)
tree6241e9b8101abe1bc64476690114e5add4623a8b /src/vim.h
parent76e69cef0c4e52dd9d251128cff0a95ae95d8da9 (diff)
downloadvim-git-4a9b19ace80d218ca85e4e10a32ed8d0135a48a5.tar.gz
Fix build on Cygwin and MingW.
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/vim.h b/src/vim.h
index 1264a84d7..fb999b290 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1980,6 +1980,12 @@ typedef int VimClipboard; /* This is required for the prototypes. */
#endif
+#if !defined(HAVE_CONFIG_H) && !defined(uint32_t) \
+ && (defined(__CYGWIN32__) || defined(__MINGW32__))
+ /* Assuming that MingW and Cygwin do not typedef uint32_t. */
+# define uint32_t unsigned int
+#endif
+
/* ISSYMLINK(mode) tests if a file is a symbolic link. */
#if (defined(S_IFMT) && defined(S_IFLNK)) || defined(S_ISLNK)
# define HAVE_ISSYMLINK
@@ -2067,9 +2073,9 @@ typedef int VimClipboard; /* This is required for the prototypes. */
/* uint32_t may be defined by configure, but perh.h may indirectly include
* stdint.h which tries to typedef uint32_t and fails. */
-#ifdef uint32_t
-# undef uint32_t
-#endif
+# ifdef uint32_t
+# undef uint32_t
+# endif
# ifdef __BORLANDC__
/* Borland has the structure stati64 but not _stati64 */