1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-25 09:45:02 +00:00

Test for __sgi instead of __GNUC__ for PRINTF macro (#1612)

This commit is contained in:
cadmic 2024-01-18 05:47:22 -08:00 committed by GitHub
parent 678af62ec3
commit 90a6268460
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,14 +103,14 @@
#ifdef OOT_DEBUG
#define PRINTF osSyncPrintf
#else
#ifdef __GNUC__
#define PRINTF(format, ...) (void)0
#else
#ifdef __sgi /* IDO compiler */
// IDO doesn't support variadic macros, but it merely throws a warning for the
// number of arguments not matching the definition (warning 609) instead of
// throwing an error. We suppress this warning and rely on GCC to catch macro
// argument errors instead.
#define PRINTF(args) (void)0
#else
#define PRINTF(format, ...) (void)0
#endif
#endif