From 6e83011779a30ffe1dda3a94c27bfef08c227c3f Mon Sep 17 00:00:00 2001 From: Maxim Masiutin Date: Sat, 1 Apr 2023 23:56:43 +0300 Subject: [PATCH] Avoid a warning in clang (LLVM) compiler that IS_64BIT is already defined by checking whether it was defined earlier, before defining it --- src/types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types.h b/src/types.h index 06b0a05985a..f3c5989583c 100644 --- a/src/types.h +++ b/src/types.h @@ -65,7 +65,9 @@ #if defined(_WIN64) && defined(_MSC_VER) // No Makefile used # include // Microsoft header for _BitScanForward64() -# define IS_64BIT +# if !defined(IS_64BIT) // Avoid a warning in clang (LLVM) compiler that IS_64BIT is already defined +# define IS_64BIT +# endif #endif #if defined(USE_POPCNT) && (defined(__INTEL_COMPILER) || defined(_MSC_VER))