[gs-cvs] rev 8036 - trunk/gs/jasper/src/libjasper/include/jasper

alexcher at ghostscript.com alexcher at ghostscript.com
Sat Jun 9 05:08:12 PDT 2007


Author: alexcher
Date: 2007-06-09 05:08:12 -0700 (Sat, 09 Jun 2007)
New Revision: 8036

Modified:
   trunk/gs/jasper/src/libjasper/include/jasper/jas_stream.h
Log:
Fix incorrect decompression of large files (>= 16M) by JPXDecode filter
on Windows. Don't open the temporary file in text mode.

DIFFERENCES:
None. 


Modified: trunk/gs/jasper/src/libjasper/include/jasper/jas_stream.h
===================================================================
--- trunk/gs/jasper/src/libjasper/include/jasper/jas_stream.h	2007-06-09 00:16:34 UTC (rev 8035)
+++ trunk/gs/jasper/src/libjasper/include/jasper/jas_stream.h	2007-06-09 12:08:12 UTC (rev 8036)
@@ -95,8 +95,13 @@
 \******************************************************************************/
 
 /* On most UNIX systems, we probably need to define O_BINARY ourselves. */
+/* MSVC and other Windows compilers define _O_BINARY instead of O_BINARY. */
 #ifndef O_BINARY
-#define O_BINARY	0
+#  ifdef  _O_BINARY
+#    define O_BINARY	_O_BINARY
+#  else
+#    define O_BINARY	0
+#  endif
 #endif
 
 /*



More information about the gs-cvs mailing list