* MinGW replaces %I64 with %llx which could cause compilation warnings;
* We already using src/ as includes directory so no need for additional conditions.
#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"
-#if !defined(_MSC_VER) || _MSC_VER > 1700
-#include <inttypes.h>
-#else
-#include "inttypes.h"
-#endif
-
class CScript;
class CDataStream;
class CAutoFile;
#ifndef BITCOIN_UTIL_H
#define BITCOIN_UTIL_H
-#if !defined(_MSC_VER) || _MSC_VER > 1700
-#include <inttypes.h>
-#else
-#include "inttypes.h"
-#endif
#include "uint256.h"
#include <stdarg.h>
+#if defined(__USE_MINGW_ANSI_STDIO)
+#undef __USE_MINGW_ANSI_STDIO // This constant forces MinGW to conduct stupid behavior
+#endif
+#include <inttypes.h>
+
#include "netbase.h" // for AddTimeData