From 1191f64091c4ccc040d1fc85a3f2ab49fe56a4c7 Mon Sep 17 00:00:00 2001 From: pkubaj Date: Tue, 20 Mar 2018 18:47:20 +0100 Subject: [PATCH] Fix build on FreeBSD 10 NOTE: This can be reverted once FreeBSD 10.4-RELEASE goes EoL. --- src/openrct2/util/Util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/util/Util.cpp b/src/openrct2/util/Util.cpp index 6c2e0a929c..5760ecbf77 100644 --- a/src/openrct2/util/Util.cpp +++ b/src/openrct2/util/Util.cpp @@ -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).