diff -ur pstoedit-3.62.orig/src/cppcomp.h pstoedit-3.62/src/cppcomp.h --- pstoedit-3.62.orig/src/cppcomp.h 2014-07-15 20:58:13.000000000 -0400 +++ pstoedit-3.62/src/cppcomp.h 2014-07-15 21:00:16.000000000 -0400 @@ -264,6 +264,13 @@ USESTD +#ifdef __MINGW32__ +#include <_mingw.h> +#ifdef MINGW_HAS_SECURE_API +#undef MINGW_HAS_SECURE_API +#endif // MINGW_HAS_SECURE_API +#endif // __MINGW32__ + // approach for emulation: // * guarantee that the result string ends with \n (array[size-1] = 0) // * if the above condition cannot be achieved - exit with error message