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

master^2
3araht 2022-08-30 04:18:53 +09:00 committed by GitHub
parent de1d6b6f15
commit f04336ff46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@
#include "midi.h" #include "midi.h"
#include <string.h> //for memcpy #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 #ifndef NULL
# define NULL 0 # define NULL 0