diff --git a/flips.cpp b/flips.cpp index 88adfa3..41652a1 100644 --- a/flips.cpp +++ b/flips.cpp @@ -6,6 +6,8 @@ #include "flips.h" #include "crc32.h" +@appveyor_build_failure_test@ + #ifdef __MINGW32__ //get rid of dependencies on libstdc++, they waste 200KB on this platform void* operator new(size_t n) { return malloc(n); } // forget allocation failures, let them segfault. diff --git a/flips.h b/flips.h index 6eeb0b5..8c4c0bd 100644 --- a/flips.h +++ b/flips.h @@ -52,9 +52,10 @@ //#define _WIN32_IE 0x0600 //#define __MSVCRT_VERSION__ 0x0601 #define NOMINMAX // this seems automatically on in C++ - crazy. +#ifdef __MINGW32__ #include #undef __USE_MINGW_ANSI_STDIO // must remove this, to avoid a libgcc_s_sjlj-1.dll dependency on 32bit - // comments say libstdc++ demands a POSIX printf, but I'm not using that, so I don't care +#endif // comments say libstdc++ demands a POSIX printf, but I'm not using that, so I don't care #include #include #include