according to https://github.com/libretro/RetroArch/issues/5497#issuecomment-336640951, this header exists on everything we care about except various microsoft platforms, and all of them have constant printf strings
This commit is contained in:
Alcaro 2017-11-27 16:57:15 +01:00 committed by GitHub
parent fc9943476c
commit ab0e1611e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 11 deletions

View File

@ -75,19 +75,16 @@ typedef int ssize_t;
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#ifdef _WIN32 #ifndef _WIN32
#define STRING_REP_INT64 "%I64d" #include <inttypes.h>
#define STRING_REP_UINT64 "%I64u"
#define STRING_REP_USIZE "%Iu"
#elif defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L && !defined(VITA) && !defined(WIIU)
#define STRING_REP_INT64 "%lld"
#define STRING_REP_UINT64 "%llu"
#define STRING_REP_USIZE "%zu"
#else #else
#define STRING_REP_INT64 "%lld" #define PRId64 "%I64d"
#define STRING_REP_UINT64 "%llu" #define PRIu64 "%I64u"
#define STRING_REP_USIZE "%lu" #define PRIuPTR "%Iu"
#endif #endif
#define STRING_REP_INT64 PRId64
#define STRING_REP_UINT64 PRIu64
#define STRING_REP_USIZE PRIuPTR
/* /*
I would like to see retro_inline.h moved in here; possibly boolean too. I would like to see retro_inline.h moved in here; possibly boolean too.