From c9fbfbd95c04dcc7e0e56a678d0f5c2d6c673e2a Mon Sep 17 00:00:00 2001 From: "Redirect \\\"Slash\\\" NIL" Date: Sat, 17 Oct 2009 12:15:13 -0700 Subject: jim-eventloop for MinGW-w64 Use JIM_WIDE_MODIFIER for the sscanf format, and apply it for MINGW32 as well as other Windows environments. (Microsoft doesn't conform to the C99 standard, and uses "%I64d" not "%lld" for "long long".) NB: __MINGW32__ should work on both w32 and w64,. --- src/helper/jim.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helper/jim.h') diff --git a/src/helper/jim.h b/src/helper/jim.h index 82d987f7..0aa0c93d 100644 --- a/src/helper/jim.h +++ b/src/helper/jim.h @@ -120,7 +120,7 @@ extern "C" { * ---------------------------------------------------------------------------*/ #ifdef HAVE_LONG_LONG_INT -# if defined(_MSC_VER) || defined(__MSVCRT__) +# if defined(_MSC_VER) || defined(__MSVCRT__) || defined(__MINGW32__) # define JIM_WIDE_MODIFIER "I64d" # else # define JIM_WIDE_MODIFIER "lld" -- cgit v1.2.3