From: Joergen Ibsen Date: Mon, 13 Jun 2016 11:01:18 +0000 (+0200) Subject: Do not define __builtin_ctzl for Clang on MSVC X-Git-Tag: 1.9.9-b1~771^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F70%2Fhead;p=thirdparty%2Fzlib-ng.git Do not define __builtin_ctzl for Clang on MSVC Clang targeting MSVC and Clang/C2 provide __builtin_ctzl. --- diff --git a/match.c b/match.c index ea425614..25b3b14c 100644 --- a/match.c +++ b/match.c @@ -28,7 +28,7 @@ #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) #include /* 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