# HG changeset patch # User John Donoghue # Date 1590779699 14400 # Node ID 4ebe3efd8e984dbfd71cbef1604e2f0dbcf5305a # Parent ca9fbba3a9bb0cc3403999c10e6a042285d5f2d4 * src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api diff -r ca9fbba3a9bb -r 4ebe3efd8e98 src/pstoedit-3-nosecapi.patch --- a/src/pstoedit-3-nosecapi.patch Fri May 29 15:14:45 2020 -0400 +++ b/src/pstoedit-3-nosecapi.patch Fri May 29 15:14:59 2020 -0400 @@ -1,20 +1,3 @@ -diff -ur pstoedit-3.62.orig/src/cppcomp.h pstoedit-3.62/src/cppcomp.h ---- pstoedit-3.62.orig/src/cppcomp.h 2014-07-25 09:09:48 -0400 -+++ pstoedit-3.62/src/cppcomp.h 2014-07-25 09:12:17 -0400 -@@ -33,7 +33,12 @@ - # define DLLEXPORT - #endif - -- -+#ifdef __MINGW32__ -+ #include <_mingw.h> -+ #ifdef MINGW_HAS_SECURE_API -+ #undef MINGW_HAS_SECURE_API -+ #endif -+#endif - - - #ifdef _AIX diff -ur pstoedit-3.62.orig/src/lexyy.cpp pstoedit-3.62/src/lexyy.cpp --- pstoedit-3.62.orig/src/lexyy.cpp 2014-07-25 09:19:14 -0400 +++ pstoedit-3.62/src/lexyy.cpp 2014-07-25 09:20:00 -0400 @@ -49,3 +32,15 @@ #include "drvwmf.h" #include I_string_h +diff -ur pstoedit-3.75.orig/src/cppcomp.h pstoedit-3.75/src/cppcomp.h +--- pstoedit-3.75.orig/src/cppcomp.h 2020-05-29 11:11:05.064392865 -0400 ++++ pstoedit-3.75/src/cppcomp.h 2020-05-29 11:20:09.056541850 -0400 +@@ -230,7 +230,7 @@ + + + //{ +-#if defined(_MSC_VER) && (_MSC_VER >= 1400) ++#if (defined(_MSC_VER) && (_MSC_VER >= 1400)) || defined(__MINGW32__) + // for MS VS 8 (== cl version 14) we can use the new secure *_s string functions + // for other systems we have to "emulate" them + #define TARGETWITHLEN(str,len) str,len