From 63e253e2c5e3f1b5441536b76225e8ef02d3944b Mon Sep 17 00:00:00 2001 From: Brandon Munger Date: Mon, 14 Mar 2016 12:55:08 -0400 Subject: [PATCH] Fix I64FMT in chdman for Linux 64 bit --- src/tools/chdman.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/chdman.cpp b/src/tools/chdman.cpp index 6029f481e07..75a1b20147b 100644 --- a/src/tools/chdman.cpp +++ b/src/tools/chdman.cpp @@ -36,6 +36,8 @@ /* MINGW has adopted the MSVC formatting for 64-bit ints as of gcc 4.4 */ #if defined(__MINGW32__) || defined(_MSC_VER) #define I64FMT "I64" +#elif defined(__linux__) && defined(__LP64__) +#define I64FMT "l" #else #define I64FMT "ll" #endif