浏览代码

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.
pull/4835/head
Nia Nightglow 3 天前
父节点
当前提交
fffbbad2f7
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      src/external/jar_xm.h

+ 7
- 0
src/external/jar_xm.h 查看文件

@ -232,6 +232,13 @@ uint64_t jar_xm_get_remaining_samples(jar_xm_context_t* ctx);
#include <limits.h>
#include <string.h>
#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 <stdio.h>
#define DEBUG(fmt, ...) do { \

||||||
x
 
000:0
正在加载...
取消
保存