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,.
This commit is contained in:
committed by
David Brownell
parent
05d6716936
commit
c9fbfbd95c
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user