#include <boost/tuple/tuple_io.hpp>
#endif
+#if defined __USE_MINGW_ANSI_STDIO
+#undef __USE_MINGW_ANSI_STDIO // This constant forces MinGW to conduct stupid behavior
+#endif
+#include <inttypes.h>
+
#include "allocators.h"
#include "version.h"
-#ifdef _MSC_VER
-#undef max
-#endif
-
-#include <inttypes.h>
class CScript;
class CDataStream;