From 19d954d9a436aa05292672e5c99636a0b5b00a84 Mon Sep 17 00:00:00 2001 From: Joergen Ibsen Date: Mon, 13 Jun 2016 13:01:18 +0200 Subject: [PATCH] Do not define __builtin_ctzl for Clang on MSVC Clang targeting MSVC and Clang/C2 provide __builtin_ctzl. --- match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2