]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Do not define __builtin_ctzl for Clang on MSVC 70/head
authorJoergen Ibsen <ji@ibse.dk>
Mon, 13 Jun 2016 11:01:18 +0000 (13:01 +0200)
committerJoergen Ibsen <ji@ibse.dk>
Mon, 13 Jun 2016 11:01:18 +0000 (13:01 +0200)
Clang targeting MSVC and Clang/C2 provide __builtin_ctzl.

match.c

diff --git a/match.c b/match.c
index ea42561477c25e80076deb78f0d3ea552ea3b8df..25b3b14ce074e94861d3862910cafc5abcabaa70 100644 (file)
--- a/match.c
+++ b/match.c
@@ -28,7 +28,7 @@
 #endif
 
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && !defined(__clang__)
 #include <intrin.h>
 /* This is not a general purpose replacement for __builtin_ctzl. The function expects that value is != 0
  * Because of that assumption trailing_zero is not initialized and the return value of _BitScanForward is not checked