]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed incorrect case for __clang__ preprocessor macro in zbuild.h.
authorNathan Moinvaziri <nathan@nathanm.com>
Tue, 10 May 2022 06:32:32 +0000 (23:32 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 12 May 2022 10:06:17 +0000 (12:06 +0200)
zbuild.h

index 9274cbc1ced8dafd2c4423479738766bb26b5313..82374b1f14e6f1715045e76ef85281a1815cf117 100644 (file)
--- a/zbuild.h
+++ b/zbuild.h
 #  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)
 #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)