Change ifndef's to undef's

This commit is contained in:
Sean Purcell 2017-04-13 15:35:05 -07:00
parent 9227aae001
commit 42bac7fa84
3 changed files with 8 additions and 12 deletions

View File

@ -147,12 +147,10 @@ typedef struct {
#ifndef MIN
# define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
#ifndef MAX
# define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif
#undef MIN
#undef MAX
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))
static int BMK_benchMem(const void* srcBuffer, size_t srcSize,
const char* displayName, int cLevel,

View File

@ -89,9 +89,8 @@ unsigned DiB_isError(size_t errorCode) { return ERR_isError(errorCode); }
const char* DiB_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); }
#ifndef MIN
# define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
#undef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
/* ********************************************************

View File

@ -96,9 +96,8 @@ void FIO_setNotificationLevel(unsigned level) { g_displayLevel=level; }
static const clock_t refreshRate = CLOCKS_PER_SEC * 15 / 100;
static clock_t g_time = 0;
#ifndef MIN
# define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
#undef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
/* ************************************************************
* Avoid fseek()'s 2GiB barrier with MSVC, MacOS, *BSD, MinGW