util/ByteOrder: check only __GNUC__

Assume GCC/clang is recent enough.
This commit is contained in:
Max Kellermann
2023-03-06 16:30:42 +01:00
parent abdbaf605e
commit ff239fff4f
3 changed files with 8 additions and 14 deletions

View File

@@ -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