]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[error] Don't guard undef X with ifdef X 817/head
authorNick Terrell <terrelln@fb.com>
Tue, 29 Aug 2017 18:54:38 +0000 (11:54 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 29 Aug 2017 18:54:38 +0000 (11:54 -0700)
lib/common/error_private.h
lib/common/threading.h

index f8e68016a687015136a7d7e26b03e640fba3ea61..a55bce8472933e6875bba07cfa3947e35864ed01 100644 (file)
@@ -48,9 +48,7 @@ typedef ZSTD_ErrorCode ERR_enum;
 /*-****************************************
 *  Error codes handling
 ******************************************/
-#ifdef ERROR
-#  undef ERROR   /* reported already defined on VS 2015 (Rich Geldreich) */
-#endif
+#undef ERROR   /* reported already defined on VS 2015 (Rich Geldreich) */
 #define ERROR(name) ZSTD_ERROR(name)
 #define ZSTD_ERROR(name) ((size_t)-PREFIX(name))
 
index 0a9fcf8575751535d33d7eea15343a3737420d67..bd4b654c2207ad4e5f92783745553d36dbd6e8dc 100644 (file)
@@ -37,13 +37,9 @@ extern "C" {
 #  define WIN32_LEAN_AND_MEAN
 #endif
 
-#ifdef ERROR
-#  undef ERROR   /* reported already defined on VS 2015 (Rich Geldreich) */
-#endif
+#undef ERROR   /* reported already defined on VS 2015 (Rich Geldreich) */
 #include <windows.h>
-#ifdef ERROR
-#  undef ERROR   /* reported already defined on VS 2015 (Rich Geldreich) */
-#endif
+#undef ERROR
 #define ERROR(name) ZSTD_ERROR(name)