X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2Fjim.h;h=089ccc157cda4eff248b38f45db7dfeddc55f84e;hb=3e51d893ed3d1273b5487e05196f00fe3d14773d;hp=82d987f7cf8a0d18658db20aaf6524d845325d94;hpb=8b994145b849c40b0a195c3fb332b9770b2f9097;p=openocd.git diff --git a/src/helper/jim.h b/src/helper/jim.h index 82d987f7cf..089ccc157c 100644 --- a/src/helper/jim.h +++ b/src/helper/jim.h @@ -87,7 +87,7 @@ extern "C" { #endif /* _MSC_VER */ /* Long Long type and related issues */ -#ifdef HAVE_LONG_LONG_INT +#if !defined(__ECOS) && defined(HAVE_LONG_LONG_INT) # ifdef _MSC_VER /* MSC compiler */ # define jim_wide _int64 # ifndef LLONG_MAX @@ -119,8 +119,8 @@ extern "C" { * LIBC specific fixes * ---------------------------------------------------------------------------*/ -#ifdef HAVE_LONG_LONG_INT -# if defined(_MSC_VER) || defined(__MSVCRT__) +#if !defined(__ECOS) && defined(HAVE_LONG_LONG_INT) +# if defined(_MSC_VER) || defined(__MSVCRT__) || defined(__MINGW32__) # define JIM_WIDE_MODIFIER "I64d" # else # define JIM_WIDE_MODIFIER "lld"