From 4e6aa2f0c1cd59c60264f74368169ccc5342c3c2 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 22 Apr 2024 15:43:07 -0700 Subject: [PATCH] Added DISABLE_DISPATCH option [skip ci] --- src/bitutils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bitutils.h b/src/bitutils.h index 1efebd5..620c251 100644 --- a/src/bitutils.h +++ b/src/bitutils.h @@ -1,6 +1,7 @@ #ifndef BITUTILS_H #define BITUTILS_H +#ifndef DISABLE_DISPATCH /* Only enable for more recent compilers */ /* TODO Move to better place */ #if defined(__x86_64__) && defined(__GNUC__) && __GNUC__ >= 8 @@ -10,6 +11,7 @@ #elif defined(_M_AMD64) && defined(_MSC_VER) && _MSC_VER >= 1920 #define USE_DISPATCH #endif +#endif /* target_clones requires glibc */ #if defined(USE_DISPATCH) && defined(__gnu_linux__)