summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/chdman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/chdman.cpp')
-rw-r--r--src/tools/chdman.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/chdman.cpp b/src/tools/chdman.cpp
index b1bce80ac07..d56fd7c1d25 100644
--- a/src/tools/chdman.cpp
+++ b/src/tools/chdman.cpp
@@ -38,8 +38,8 @@
//**************************************************************************
// CONSTANTS & DEFINES
//**************************************************************************
-/* MINGW has adopted the MSVC formatting for 64-bit ints as of gcc 4.4 */
-#if defined(WIN32)
+// MINGW has adopted the MSVC formatting for 64-bit ints as of GCC 4.4 and deprecated it as of GCC 10
+#if defined(WIN32) && defined(__GNUC__) && (__GNUC__ < 10)
#define I64FMT "I64"
#elif !defined(__APPLE__) && defined(__LP64__)
#define I64FMT "l"