Kaydet (Commit) c477ad18 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Work around compilation errors with mingw-w64 and --enable-debug

üst 5166d6ee
...@@ -44,8 +44,31 @@ ...@@ -44,8 +44,31 @@
#include <string> #include <string>
#define STRSAFE_NO_DEPRECATE #define STRSAFE_NO_DEPRECATE
#ifdef __MINGW32__
// Work around lack of strsafe library in mingw-w64, do let their
// strsafe.h provide inlines of StringCchVPrintfA etc, avoid linking
// errors in a debug build.
#ifdef __CRT__NO_INLINE
#undef __CRT__NO_INLINE
#define DID_UNDEFINE__CRT__NO_INLINE
#endif
extern "C" {
#endif
#include <strsafe.h> #include <strsafe.h>
#ifdef __MINGW32__
}
#ifdef DID_UNDEFINE__CRT__NO_INLINE
#define __CRT__NO_INLINE
#endif
#endif
//--------------------------------- //---------------------------------
/** Convert a string to a wstring /** Convert a string to a wstring
using CP_ACP using CP_ACP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment