diff options
author | Robin Gareus <robin@gareus.org> | 2015-08-12 19:16:01 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-08-12 19:16:01 +0200 |
commit | 5a304e9e338d43a1e1fea48ed77351d75e416390 (patch) | |
tree | ffa6b03511ab9bc5f3abc80b4b49ff0c87acf57d /libs/pbd/fpu.cc | |
parent | 4332c5e6ca01a50f9cc9850b8461e5c757ad6b15 (diff) |
fix PPC builds
Diffstat (limited to 'libs/pbd/fpu.cc')
-rw-r--r-- | libs/pbd/fpu.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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 () |