From 90a6268460e9032733c708eb00d124b291256be9 Mon Sep 17 00:00:00 2001 From: cadmic Date: Thu, 18 Jan 2024 05:47:22 -0800 Subject: [PATCH] Test for __sgi instead of __GNUC__ for PRINTF macro (#1612) --- include/macros.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/macros.h b/include/macros.h index f6f35190d9..05fa693e2e 100644 --- a/include/macros.h +++ b/include/macros.h @@ -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