util/Compiler.h: remove unused compiler version check macros

This commit is contained in:
Max Kellermann 2023-03-06 16:35:40 +01:00
parent e602bcf41e
commit 35b6d65f27
2 changed files with 1 additions and 18 deletions

View File

@ -2038,9 +2038,7 @@ INCLUDE_FILE_PATTERNS =
# recursively expanded use the := operator instead of the = operator. # recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
PREDEFINED = GCC_CHECK_VERSION(major,minor)=0 \ PREDEFINED = GCC_CHECK_VERSION(major,minor)=0
CLANG_OR_GCC_VERSION(major,minor)=0 \
GCC_OLDER_THAN(major,minor)=0
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The # tag can be used to specify a list of macro names that should be expanded. The

View File

@ -26,21 +26,6 @@
(CLANG_VERSION == 0 && \ (CLANG_VERSION == 0 && \
GCC_VERSION >= GCC_MAKE_VERSION(major, minor, 0)) GCC_VERSION >= GCC_MAKE_VERSION(major, minor, 0))
/**
* Are we building with clang (any version) or at least the specified
* gcc version?
*/
#define CLANG_OR_GCC_VERSION(major, minor) \
(CLANG_VERSION > 0 || GCC_CHECK_VERSION(major, minor))
/**
* Are we building with gcc (not clang or any other compiler) and a
* version older than the specified one?
*/
#define GCC_OLDER_THAN(major, minor) \
(GCC_VERSION > 0 && CLANG_VERSION == 0 && \
GCC_VERSION < GCC_MAKE_VERSION(major, minor, 0))
/** /**
* Are we building with the specified version of clang or newer? * Are we building with the specified version of clang or newer?
*/ */