From f04336ff461a56799b79e5691f7b48e59f45ec08 Mon Sep 17 00:00:00 2001 From: 3araht <69518343+3araht@users.noreply.github.com> Date: Tue, 30 Aug 2022 04:18:53 +0900 Subject: Redefinition of MIN is avoided in midi.c (#18203) --- tmk_core/protocol/midi/midi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tmk_core/protocol/midi/midi.c b/tmk_core/protocol/midi/midi.c index f3792552f4..1ba3e73a40 100644 --- a/tmk_core/protocol/midi/midi.c +++ b/tmk_core/protocol/midi/midi.c @@ -19,7 +19,9 @@ #include "midi.h" #include //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 -- cgit v1.2.3