Skip to content

Commit dd700a8

Browse files
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.
1 parent b80250b commit dd700a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/external/jar_xm.h

+8
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,16 @@ uint64_t jar_xm_get_remaining_samples(jar_xm_context_t* ctx);
230230
#include <stdio.h>
231231
#include <stdlib.h>
232232
#include <limits.h>
233+
233234
#include <string.h>
234235

236+
#ifdef DEBUG
237+
// Undefine DEBUG to avoid external redefinition warnings/conflicts
238+
// This is probably a common definition for
239+
// many external build systems' debug configurations
240+
#undef DEBUG
241+
#endif
242+
235243
#if JAR_XM_DEBUG //JAR_XM_DEBUG defined as 0
236244
#include <stdio.h>
237245
#define DEBUG(fmt, ...) do { \

0 commit comments

Comments
 (0)