Skip to content

Commit c6b3ce3

Browse files
authored
Merge pull request #141 from realnc/fix-stdc-format-macros
Fix warnings about redefining __STDC_FORMAT_MACROS
2 parents 455604b + 778ae35 commit c6b3ce3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

include/retro_common_api.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ typedef int ssize_t;
8989
/* C++11 says this one isn't needed, but apparently (some versions of) mingw require it anyways */
9090
/* https://stackoverflow.com/questions/8132399/how-to-printf-uint64-t-fails-with-spurious-trailing-in-format */
9191
/* https://github.com/libretro/RetroArch/issues/6009 */
92-
#define __STDC_FORMAT_MACROS
92+
#ifndef __STDC_FORMAT_MACROS
93+
#define __STDC_FORMAT_MACROS 1
94+
#endif
9395
#include <inttypes.h>
9496
#endif
9597
#ifndef PRId64

0 commit comments

Comments
 (0)