ifndef MIN() & MAX() macros

This commit is contained in:
Aaron Culliney 2014-03-30 10:39:45 -07:00
parent 37df0d52bb
commit 98cd975328

View File

@ -64,6 +64,14 @@
#include "audio/mockingboard.h"
#endif
#if !defined(MIN)
#define MIN(a,b) (((a) <= (b)) ? (a) : (b))
#endif
#if !defined(MAX)
#define MAX(a,b) (((a) >= (b)) ? (a) : (b))
#endif
#ifndef NDEBUG
# if defined(__GNUC__)
# pragma GCC diagnostic push