Skip to content

Commit

Permalink
Redefinition of MIN is avoided in midi.c (#18203)
Browse files Browse the repository at this point in the history
  • Loading branch information
3araht authored Aug 29, 2022
1 parent de1d6b6 commit f04336f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tmk_core/protocol/midi/midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f04336f

Please sign in to comment.