mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
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:
parent
fc9943476c
commit
ab0e1611e7
@ -75,19 +75,16 @@ typedef int ssize_t;
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define STRING_REP_INT64 "%I64d"
|
||||
#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"
|
||||
#ifndef _WIN32
|
||||
#include <inttypes.h>
|
||||
#else
|
||||
#define STRING_REP_INT64 "%lld"
|
||||
#define STRING_REP_UINT64 "%llu"
|
||||
#define STRING_REP_USIZE "%lu"
|
||||
#define PRId64 "%I64d"
|
||||
#define PRIu64 "%I64u"
|
||||
#define PRIuPTR "%Iu"
|
||||
#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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user