Added DISABLE_DISPATCH option [skip ci]

This commit is contained in:
Andrew Kane
2024-04-22 15:43:07 -07:00
parent 40e86251c3
commit 4e6aa2f0c1

View File

@@ -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__)