mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
cmake: freebsd: Fix -Wformat warning during tests build
Without using <inttypes.h>, SDL_PRIx64 will expand to llx, but on 64-bit FreeBSD platforms (u)int64_t is `(usigned) long`: SDL_test_memory.c:261:77: error: format specifies type 'unsigned long long' but the argument has type 'Uint64' (aka 'unsigned long') [-Werror,-Wformat] This commit updates config_minimal.h to also assume presence of inttypes.h for everything except old MSVC.
This commit is contained in:
parent
12f14bdbeb
commit
d51a8f530e
1 changed files with 1 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ typedef unsigned long long uint64_t;
|
|||
typedef unsigned long uintptr_t;
|
||||
#else
|
||||
#define HAVE_STDINT_H 1
|
||||
#define HAVE_INTTYPES_H 1
|
||||
#endif /* Visual Studio 2008 */
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue