diff src/vim.h @ 10025:068f397d0da4 v7.4.2285

commit https://github.com/vim/vim/commit/d90b6c02e2900576fb37d95b5e4f4a32b2d7383f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 28 18:10:45 2016 +0200 patch 7.4.2285 Problem: Generated files are outdated. Solution: Generate the files. Avoid errors when generating prototypes.
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Aug 2016 18:15:05 +0200
parents 176e34b0d678
children 4aead6a9b7a9
line wrap: on
line diff
--- a/src/vim.h
+++ b/src/vim.h
@@ -410,7 +410,11 @@ typedef __int64 off_T;
 #  define vim_ftell _ftelli64
 # endif
 #else
+# ifdef PROTO
+typedef long off_T;
+# else
 typedef off_t off_T;
+# endif
 # ifdef HAVE_FSEEKO
 #  define vim_lseek lseek
 #  define vim_ftell ftello
@@ -1809,10 +1813,14 @@ typedef int proftime_T;	    /* dummy for
  * bits elsewhere.  That causes memory corruption.  Define time_T and use it
  * for global variables to avoid that.
  */
-#ifdef WIN3264
+#ifdef PROTO
+typedef long  time_T;
+#else
+# ifdef WIN3264
 typedef __time64_t  time_T;
-#else
+# else
 typedef time_t	    time_T;
+# endif
 #endif
 
 #ifdef _WIN64