~ruther/qmk_firmware

f04336ff461a56799b79e5691f7b48e59f45ec08 — 3araht 3 years ago de1d6b6
Redefinition of MIN is avoided in midi.c (#18203)

1 files changed, 3 insertions(+), 1 deletions(-)

M tmk_core/protocol/midi/midi.c
M tmk_core/protocol/midi/midi.c => tmk_core/protocol/midi/midi.c +3 -1
@@ 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