msvc c99 hack

This commit is contained in:
Anthony Green
2018-03-27 14:12:02 -04:00
parent a3e2094089
commit e8cf133813

View File

@@ -79,14 +79,12 @@
#define PRIdLL "ld"
#undef PRIuLL
#define PRIuLL "lu"
#ifndef _MSC_VER
#define PRId8 "hd"
#define PRIu8 "hu"
#define PRId64 "ld"
#define PRIu64 "lu"
#define PRIuPTR "lu"
#endif
#endif
/* PA HP-UX kludge. */
#if defined(__hppa__) && defined(__hpux__) && !defined(PRIuPTR)
@@ -126,12 +124,14 @@
/* MSVC kludge. */
#if defined _MSC_VER
#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS)
#define PRIuPTR "lu"
#define PRIu8 "u"
#define PRId8 "d"
#define PRIu64 "I64u"
#define PRId64 "I64d"
#endif
#endif
#ifndef PRIuPTR
#define PRIuPTR "u"