]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Change ifndef's to undef's
authorSean Purcell <me@seanp.xyz>
Thu, 13 Apr 2017 22:35:05 +0000 (15:35 -0700)
committerSean Purcell <me@seanp.xyz>
Thu, 13 Apr 2017 22:35:05 +0000 (15:35 -0700)
programs/bench.c
programs/dibio.c
programs/fileio.c

index 8d8ed4ffaa55ff89fc35c97beaecbdbceccea244..c3681eb05da7f44b6a8020561a4d745d7f81b08e 100644 (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,
index 5e685a325f83a01948a52de6f4b918cf4cf50eb1..aac36425cf752de16155c7766e519c1b3a7da51e 100644 (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))
 
 
 /* ********************************************************
index 1dc222b656c9afea940347cf98b8e6b7da5bbaf6..9bca20664d33c0e49fe13d82b5f03f14c857d0a0 100644 (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