From 9fd532ac9639962de05196bcf235cc0bce03a59d Mon Sep 17 00:00:00 2001 From: erayhanoglu Date: Fri, 6 Jan 2017 09:03:51 +0200 Subject: [PATCH] Fix warning for bcc64 compiler bcc64 produces a warning for fprintf methods, that uses PRIi64 specifier. "[bcc64 Warning] j2k.c(9454): invalid conversion specifier 'I'" This modification fixes the warning. --- src/lib/openjp2/opj_inttypes.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/openjp2/opj_inttypes.h b/src/lib/openjp2/opj_inttypes.h index e74aed6a..ed6befa2 100644 --- a/src/lib/openjp2/opj_inttypes.h +++ b/src/lib/openjp2/opj_inttypes.h @@ -36,10 +36,17 @@ #include #else #if defined(_WIN32) +#if defined(__BORLANDC__) && defined(_WIN64) +#define PRId64 "lld" +#define PRIi64 "lli" +#define PRIu64 "llu" +#define PRIx64 "llx" +#else #define PRId64 "I64d" #define PRIi64 "I64i" #define PRIu64 "I64u" #define PRIx64 "I64x" +#endif #else #error unsupported platform #endif