From: Nathan Moinvaziri Date: Tue, 10 May 2022 06:32:32 +0000 (-0700) Subject: Fixed incorrect case for __clang__ preprocessor macro in zbuild.h. X-Git-Tag: 2.1.0-beta1~247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41d67396924ccc7ab1ff9a7e7d434bfb0887b136;p=thirdparty%2Fzlib-ng.git Fixed incorrect case for __clang__ preprocessor macro in zbuild.h. --- diff --git a/zbuild.h b/zbuild.h index 9274cbc1c..82374b1f1 100644 --- a/zbuild.h +++ b/zbuild.h @@ -100,7 +100,7 @@ # define ZSWAP32(q) _byteswap_ulong(q) # define ZSWAP64(q) _byteswap_uint64(q) -#elif defined(__Clang__) || (defined(__GNUC__) && \ +#elif defined(__clang__) || (defined(__GNUC__) && \ (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))) # define ZSWAP16(q) __builtin_bswap16(q) # define ZSWAP32(q) __builtin_bswap32(q) @@ -144,7 +144,7 @@ #endif /* Only enable likely/unlikely if the compiler is known to support it */ -#if (defined(__GNUC__) && (__GNUC__ >= 3)) || defined(__INTEL_COMPILER) || defined(__Clang__) +#if (defined(__GNUC__) && (__GNUC__ >= 3)) || defined(__INTEL_COMPILER) || defined(__clang__) # define LIKELY_NULL(x) __builtin_expect((x) != 0, 0) # define LIKELY(x) __builtin_expect(!!(x), 1) # define UNLIKELY(x) __builtin_expect(!!(x), 0)