util/ByteOrder: check only __GNUC__
Assume GCC/clang is recent enough.
This commit is contained in:
@@ -4,9 +4,7 @@
|
||||
#ifndef MPD_CONFIG_OPTION_HXX
|
||||
#define MPD_CONFIG_OPTION_HXX
|
||||
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#if defined(_WIN32) && CLANG_OR_GCC_VERSION(4,7)
|
||||
#if defined(_WIN32) && defined(__GNUC__)
|
||||
/* "INPUT" is declared by winuser.h */
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wshadow"
|
||||
@@ -85,7 +83,7 @@ enum class ConfigBlockOption {
|
||||
MAX
|
||||
};
|
||||
|
||||
#if defined(_WIN32) && CLANG_OR_GCC_VERSION(4,7)
|
||||
#if defined(_WIN32) && defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user