[sword-svn] r3526 - trunk/src/utilfuns/zlib

scribe at crosswire.org scribe at crosswire.org
Sat Nov 11 23:28:11 MST 2017


Author: scribe
Date: 2017-11-11 23:28:11 -0700 (Sat, 11 Nov 2017)
New Revision: 3526

Modified:
   trunk/src/utilfuns/zlib/gzlib.c
   trunk/src/utilfuns/zlib/gzread.c
   trunk/src/utilfuns/zlib/gzwrite.c
Log:
Added includes to better compile under XCode


Modified: trunk/src/utilfuns/zlib/gzlib.c
===================================================================
--- trunk/src/utilfuns/zlib/gzlib.c	2017-11-12 06:27:13 UTC (rev 3525)
+++ trunk/src/utilfuns/zlib/gzlib.c	2017-11-12 06:28:11 UTC (rev 3526)
@@ -15,6 +15,14 @@
 #endif
 #endif
 
+#if !defined(__GNUC__) && !defined(_WIN32_WCE)
+#include <io.h>
+#include <direct.h>
+#else
+#include <unistd.h>
+#endif
+
+
 /* Local functions */
 local void gz_reset OF((gz_statep));
 local gzFile gz_open OF((const void *, int, const char *));

Modified: trunk/src/utilfuns/zlib/gzread.c
===================================================================
--- trunk/src/utilfuns/zlib/gzread.c	2017-11-12 06:27:13 UTC (rev 3525)
+++ trunk/src/utilfuns/zlib/gzread.c	2017-11-12 06:28:11 UTC (rev 3526)
@@ -5,6 +5,13 @@
 
 #include "gzguts.h"
 
+#if !defined(__GNUC__) && !defined(_WIN32_WCE)
+#include <io.h>
+#include <direct.h>
+#else
+#include <unistd.h>
+#endif
+
 /* Local functions */
 local int gz_load OF((gz_statep, unsigned char *, unsigned, unsigned *));
 local int gz_avail OF((gz_statep));

Modified: trunk/src/utilfuns/zlib/gzwrite.c
===================================================================
--- trunk/src/utilfuns/zlib/gzwrite.c	2017-11-12 06:27:13 UTC (rev 3525)
+++ trunk/src/utilfuns/zlib/gzwrite.c	2017-11-12 06:28:11 UTC (rev 3526)
@@ -4,7 +4,12 @@
  */
 
 #include "gzguts.h"
-
+#if !defined(__GNUC__) && !defined(_WIN32_WCE)
+#include <io.h>
+#include <direct.h>
+#else
+#include <unistd.h>
+#endif
 /* Local functions */
 local int gz_init OF((gz_statep));
 local int gz_comp OF((gz_statep, int));




More information about the sword-cvs mailing list