소스 검색

Redefinition of MIN is avoided in midi.c (#18203)

3araht 2 년 전
부모
커밋
f04336ff46
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      tmk_core/protocol/midi/midi.c

+ 3 - 1
tmk_core/protocol/midi/midi.c

@@ -19,7 +19,9 @@
 #include "midi.h"
 #include <string.h> //for memcpy
 
-#define MIN(x, y) (((x) < (y)) ? (x) : (y))
+#ifndef MIN
+#    define MIN(x, y) (((x) < (y)) ? (x) : (y))
+#endif
 
 #ifndef NULL
 #    define NULL 0