FIX:win32: mingw32ce do not have fdopen and ptrdiff_t
authorzaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 7 Nov 2008 23:34:53 +0000 (23:34 +0000)
committerzaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 7 Nov 2008 23:34:53 +0000 (23:34 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1685 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/support/zlib/zutil.h

index b7d5eff..6cca50b 100644 (file)
@@ -151,7 +151,7 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
 #  define fdopen(fd,mode) NULL /* No fdopen() */
 #endif
 
-#if (defined(_MSC_VER) && (_MSC_VER > 600))
+#if (defined(_MSC_VER) && (_MSC_VER > 600)) || defined(__MINGW32__)
 #  if defined(_WIN32_WCE)
 #    define fdopen(fd,mode) NULL /* No fdopen() */
 #    ifndef _PTRDIFF_T_DEFINED