From 4e98ecfc2956b871f1daa82d0e59940dba4cc069 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Tue, 4 Feb 2014 14:49:04 +0100 Subject: [PATCH] fix for gcc --- Foundation/include/Poco/ByteOrder.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Foundation/include/Poco/ByteOrder.h b/Foundation/include/Poco/ByteOrder.h index 9dab9d1d2..bf8dc1139 100644 --- a/Foundation/include/Poco/ByteOrder.h +++ b/Foundation/include/Poco/ByteOrder.h @@ -122,8 +122,10 @@ public: #if !defined(POCO_NO_BYTESWAP_BUILTINS) #if defined(_MSC_VER) #define POCO_HAVE_MSC_BYTESWAP 1 -#elif defined(__clang__) && __has_builtin(__builtin_bswap32) +#elif defined(__clang__) +#if __has_builtin(__builtin_bswap32) #define POCO_HAVE_GCC_BYTESWAP 1 +#endif #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) #define POCO_HAVE_GCC_BYTESWAP 1 #endif