Fix build on FreeBSD 10

NOTE: This can be reverted once FreeBSD 10.4-RELEASE goes EoL.
This commit is contained in:
pkubaj authored and Michał Janiszewski committed 2018-03-20 23:15:28 +01:00
1 parent 9d3e1fbedf
commit 1191f64091
1 file changed
+1 -1
+1 -1
View File
@@ -223,7 +223,7 @@ bool avx2_available()
// https://github.com/gcc-mirror/gcc/commit/132fa33ce998df69a9f793d63785785f4b93e6f1
// which causes it to ignore subleafs, but the new function is unavailable on Ubuntu's
// prehistoric toolchains
#if defined(OpenRCT2_CPUID_GNUC_X86)
#if defined(OpenRCT2_CPUID_GNUC_X86) && !defined(__FreeBSD__)
return __builtin_cpu_supports("avx2");
#else
// AVX2 support is declared as the 5th bit of EBX with CPUID(EAX = 7, ECX = 0).