Mercurial > mxe-octave
view src/mingw-ghostscript-1-win.patch @ 3804:7e15ef9bf1e5
Update build-gcc, nsis to compile when in w64 mode.
* src/build-binutils.mk: add windows 64 conditionals to binutils to compile multilib
* src/build-gcc.mk:add windows 64 conditionals to gcc to compile multilib
* src/nsis.mk: add PKG_BUILD target for windows 64
* src/win64-nsis.patch: new file.
* dist-files.mk: add reference to win64-nsis.patch.
author | John D |
---|---|
date | Tue, 17 Feb 2015 14:48:23 -0500 |
parents | 50f11d938045 |
children |
line wrap: on
line source
diff -ur ghostscript-9.15.orig/base/gp_unifn.c ghostscript-9.15/base/gp_unifn.c --- ghostscript-9.15.orig/base/gp_unifn.c 2015-02-16 07:47:31.050998971 -0500 +++ ghostscript-9.15/base/gp_unifn.c 2015-02-16 07:48:50.582467223 -0500 @@ -25,7 +25,11 @@ /* Define the string to be concatenated with the file mode */ /* for opening files without end-of-line conversion. */ +#if (defined(__MINGW32__) && __MINGW32__ == 1) || (defined(__CYGWIN__) && __CYGWIN__ == 1) +const char gp_fmode_binary_suffix[] = "b"; +#else const char gp_fmode_binary_suffix[] = ""; +#endif /* Define the file modes for binary reading or writing. */ #if (defined(__MINGW32__) && __MINGW32__ == 1) || (defined(__CYGWIN__) && __CYGWIN__ == 1)