[error] Don't guard undef X with ifdef X
This commit is contained in:
@@ -48,9 +48,7 @@ typedef ZSTD_ErrorCode ERR_enum;
|
|||||||
/*-****************************************
|
/*-****************************************
|
||||||
* Error codes handling
|
* Error codes handling
|
||||||
******************************************/
|
******************************************/
|
||||||
#ifdef ERROR
|
#undef ERROR /* reported already defined on VS 2015 (Rich Geldreich) */
|
||||||
# undef ERROR /* reported already defined on VS 2015 (Rich Geldreich) */
|
|
||||||
#endif
|
|
||||||
#define ERROR(name) ZSTD_ERROR(name)
|
#define ERROR(name) ZSTD_ERROR(name)
|
||||||
#define ZSTD_ERROR(name) ((size_t)-PREFIX(name))
|
#define ZSTD_ERROR(name) ((size_t)-PREFIX(name))
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,9 @@ extern "C" {
|
|||||||
# define WIN32_LEAN_AND_MEAN
|
# define WIN32_LEAN_AND_MEAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ERROR
|
#undef ERROR /* reported already defined on VS 2015 (Rich Geldreich) */
|
||||||
# undef ERROR /* reported already defined on VS 2015 (Rich Geldreich) */
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#ifdef ERROR
|
#undef ERROR
|
||||||
# undef ERROR /* reported already defined on VS 2015 (Rich Geldreich) */
|
|
||||||
#endif
|
|
||||||
#define ERROR(name) ZSTD_ERROR(name)
|
#define ERROR(name) ZSTD_ERROR(name)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user