Mercurial > mxe-octave
view src/gdcm-1-nosecapi.patch @ 3872:d7b2bb282421
mingw-w64: patch mingw-w64 for %g bug
* dist-files.mk: add mingw-w64-3-fix-g-format.patch
* src/mingw-w64-3-fix-g-format.patch: new file
* src/build-gcc.mk: apply patches to mingw-w64 before building crt
author | John Donoghue |
---|---|
date | Mon, 06 Apr 2015 11:30:00 -0400 |
parents | 15551fc621fa |
children |
line wrap: on
line source
diff -ur gdcm-2.0.19.orig/Source/Common/gdcmException.h gdcm-2.0.19/Source/Common/gdcmException.h --- gdcm-2.0.19.orig/Source/Common/gdcmException.h 2014-07-26 11:45:31 -0400 +++ gdcm-2.0.19/Source/Common/gdcmException.h 2014-07-26 11:57:11 -0400 @@ -14,6 +14,13 @@ #ifndef GDCMEXCEPTION_H #define GDCMEXCEPTION_H +#ifdef __MINGW32__ + #include <_mingw.h> + #ifdef MINGW_HAS_SECURE_API + #undef MINGW_HAS_SECURE_API + #endif +#endif + #include <cassert> #include <cstdlib> // NULL #include <exception>