From 4f37007f00f1cf41e2ead031ddc4a34ef8dbd9e5 Mon Sep 17 00:00:00 2001 From: Ken Sedgwick Date: Mon, 11 Sep 2023 13:20:12 -0700 Subject: [PATCH] build: Use `__GNUC__` instead of `__GNUC_PREREQ`, fixes Alpine build Changelog-Fixed: build: Use `__GNUC__` instead of `__GNUC_PREREQ`, fixes Alpine build ([#178]) --- Util/Compiler.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Util/Compiler.hpp b/Util/Compiler.hpp index d6ee5e3ad..325460b3a 100644 --- a/Util/Compiler.hpp +++ b/Util/Compiler.hpp @@ -1,14 +1,10 @@ #ifndef COMPILER_H_ #define COMPILER_H_ -#ifdef __GNUC__ -#include +#if defined(__GNUC__) && (__GNUC__ >= 13) // We need a GCC patch here due the following bug // -#if __GNUC_PREREQ(13,0) #include #endif -#endif - #endif // COMPILER_H_