--- linuxsampler/trunk/src/common/global.h 2020/01/10 15:22:34 3712 +++ linuxsampler/trunk/src/common/global.h 2020/01/10 16:02:35 3713 @@ -27,13 +27,20 @@ #ifndef __LS_GLOBAL_H__ #define __LS_GLOBAL_H__ +// workaround for a bug with older versions of mingw, which would prevent +// portable format specifiers like PRId64 from being defined +#ifdef __MINGW32__ +# define __STDC_FORMAT_MACROS 1 +#endif + +// C++ header before any C headers intentionally here, due to +// format specifiers bug occurring with older versions of mingw (see above) +#include #include #include #include #include -#include - typedef std::string String; #if defined(WIN32)