Corrected issue #85

Add compilation tests for MIN/MAX macro definitions.
pull/94/head
Christophe Favergeon 3 years ago
parent d1bf6fe5d1
commit 18d3504390

@ -40,9 +40,13 @@ extern "C"
#define INDEX_MASK 0x0000003F
#define MIN(x,y) ((x) < (y) ? (x) : (y))
#ifndef MIN
#define MIN(x,y) ((x) < (y) ? (x) : (y))
#endif
#define MAX(x,y) ((x) > (y) ? (x) : (y))
#ifndef MAX
#define MAX(x,y) ((x) > (y) ? (x) : (y))
#endif
#define SQ(x) ((x) * (x))

Loading…
Cancel
Save