msvc c99 hack
This commit is contained in:
@@ -79,14 +79,12 @@
|
|||||||
#define PRIdLL "ld"
|
#define PRIdLL "ld"
|
||||||
#undef PRIuLL
|
#undef PRIuLL
|
||||||
#define PRIuLL "lu"
|
#define PRIuLL "lu"
|
||||||
#ifndef _MSC_VER
|
|
||||||
#define PRId8 "hd"
|
#define PRId8 "hd"
|
||||||
#define PRIu8 "hu"
|
#define PRIu8 "hu"
|
||||||
#define PRId64 "ld"
|
#define PRId64 "ld"
|
||||||
#define PRIu64 "lu"
|
#define PRIu64 "lu"
|
||||||
#define PRIuPTR "lu"
|
#define PRIuPTR "lu"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
/* PA HP-UX kludge. */
|
/* PA HP-UX kludge. */
|
||||||
#if defined(__hppa__) && defined(__hpux__) && !defined(PRIuPTR)
|
#if defined(__hppa__) && defined(__hpux__) && !defined(PRIuPTR)
|
||||||
@@ -126,12 +124,14 @@
|
|||||||
|
|
||||||
/* MSVC kludge. */
|
/* MSVC kludge. */
|
||||||
#if defined _MSC_VER
|
#if defined _MSC_VER
|
||||||
|
#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS)
|
||||||
#define PRIuPTR "lu"
|
#define PRIuPTR "lu"
|
||||||
#define PRIu8 "u"
|
#define PRIu8 "u"
|
||||||
#define PRId8 "d"
|
#define PRId8 "d"
|
||||||
#define PRIu64 "I64u"
|
#define PRIu64 "I64u"
|
||||||
#define PRId64 "I64d"
|
#define PRId64 "I64d"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PRIuPTR
|
#ifndef PRIuPTR
|
||||||
#define PRIuPTR "u"
|
#define PRIuPTR "u"
|
||||||
|
|||||||
Reference in New Issue
Block a user