Fix PRIdS define for Windows MINGW64 and DJGPP

Make the PRIdS define into "zu" instead of "Iu" for MINGW64
Fix checking for "DJGPP" instead of "__DJGPP__"
This commit is contained in:
Zwip-Zwap Zapony 2021-01-02 12:40:59 +01:00
parent b31c4db89d
commit 8f02e3e462

View file

@ -62,9 +62,9 @@ typedef off_t off64_t;
#if defined(__MINGW32__) && ((__GNUC__ > 7) || (__GNUC__ == 6 && __GNUC_MINOR__ >= 3)) && (__GNUC__ < 8) #if defined(__MINGW32__) && ((__GNUC__ > 7) || (__GNUC__ == 6 && __GNUC_MINOR__ >= 3)) && (__GNUC__ < 8)
#define PRIdS "u" #define PRIdS "u"
#elif defined (_WIN32) #elif defined(_WIN32) && !defined(__MINGW64__)
#define PRIdS "Iu" #define PRIdS "Iu"
#elif defined (DJGPP) #elif defined(__DJGPP__)
#define PRIdS "u" #define PRIdS "u"
#else #else
#define PRIdS "zu" #define PRIdS "zu"