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
+3 -3
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