From fffbbad2f7fd0fdfdafdf291c732249cedfa3d4d Mon Sep 17 00:00:00 2001 From: Nia Nightglow Date: Wed, 12 Mar 2025 00:00:18 -0500 Subject: [PATCH] Guard against DEBUG Redefinition Undefine DEBUG to avoid external redefinition warnings/conflicts. This is probably a common definition for many external build systems' debug configurations. This ensures raylib will not emit a warning about the DEBUG definition being redefined in external build systems. --- src/external/jar_xm.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/external/jar_xm.h b/src/external/jar_xm.h index b5e80e48a..174c1704c 100644 --- a/src/external/jar_xm.h +++ b/src/external/jar_xm.h @@ -232,6 +232,13 @@ uint64_t jar_xm_get_remaining_samples(jar_xm_context_t* ctx); #include #include +#ifdef DEBUG + // Undefine DEBUG to avoid external redefinition warnings/conflicts + // This is probably a common definition for + // many external build systems' debug configurations + #undef DEBUG +#endif + #if JAR_XM_DEBUG //JAR_XM_DEBUG defined as 0 #include #define DEBUG(fmt, ...) do { \