From 5a304e9e338d43a1e1fea48ed77351d75e416390 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 12 Aug 2015 19:16:01 +0200 Subject: fix PPC builds --- libs/pbd/fpu.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/pbd/fpu.cc') diff --git a/libs/pbd/fpu.cc b/libs/pbd/fpu.cc index 64fc88de66..13f0ea6ac4 100644 --- a/libs/pbd/fpu.cc +++ b/libs/pbd/fpu.cc @@ -40,6 +40,7 @@ using namespace std; FPU* FPU::_instance (0); +#if ( (defined __x86_64__) || (defined __i386__) || (defined _M_X64) || (defined _M_IX86) ) // ARCH_X86 #ifndef PLATFORM_WINDOWS /* use __cpuid() as the name to match the MSVC/mingw intrinsic */ @@ -95,6 +96,7 @@ _xgetbv (uint32_t xcr) } #endif /* !COMPILER_MSVC */ +#endif /* ARCH_X86 */ #ifndef _XCR_XFEATURE_ENABLED_MASK #define _XCR_XFEATURE_ENABLED_MASK 0 @@ -239,7 +241,6 @@ FPU::FPU () free (fxbuf); #endif } -#endif /* finally get the CPU brand */ @@ -261,6 +262,7 @@ FPU::FPU () info << string_compose (_("CPU brand: %1"), cpu_brand) << endmsg; } } +#endif /* !ARCH_X86 */ } FPU::~FPU () -- cgit v1.2.3