diff options
author | Redirect \"Slash\" NIL <redirect.slash.nil@gmail.com> | 2009-10-17 12:15:13 -0700 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-10-17 12:15:13 -0700 |
commit | c9fbfbd95c04dcc7e0e56a678d0f5c2d6c673e2a (patch) | |
tree | 9cf91d2d25bbf5224a64e1bed5ba69d1ce20224c /src/helper/jim-eventloop.c | |
parent | 05d6716936d4c8cea80443b1aaaa14a80e97cfc4 (diff) |
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,.
Diffstat (limited to 'src/helper/jim-eventloop.c')
-rw-r--r-- | src/helper/jim-eventloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/jim-eventloop.c b/src/helper/jim-eventloop.c index 5da00c94..edeeae71 100644 --- a/src/helper/jim-eventloop.c +++ b/src/helper/jim-eventloop.c @@ -498,7 +498,7 @@ static int JimELAfterCommand(Jim_Interp *interp, int argc, int tlen ; jim_wide remain = 0; const char *tok = Jim_GetString(argv[2], &tlen); - if (sscanf(tok,"after#%lld",&id) == 1) { + if (sscanf(tok,"after#%" JIM_WIDE_MODIFIER, &id) == 1) { remain = Jim_DeleteTimeHandler(interp, id); if (remain > -2) { Jim_SetResult(interp, Jim_NewIntObj(interp, remain)); |