diff options
author | Robin Gareus <robin@gareus.org> | 2015-08-12 05:25:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-08-12 05:25:29 +0200 |
commit | 94b6e7ffe47b1174d981391059d1ff6af11095fa (patch) | |
tree | d6f23ed441d856e13bb400713b4f4c68c2acce31 /libs/pbd/fpu.cc | |
parent | b6f9bbeb2fc3b31e612a8a8ba5a0c91f9f5642b4 (diff) |
fix mingw compilation
Diffstat (limited to 'libs/pbd/fpu.cc')
-rw-r--r-- | libs/pbd/fpu.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libs/pbd/fpu.cc b/libs/pbd/fpu.cc index 7450b0d451..a2259eb46b 100644 --- a/libs/pbd/fpu.cc +++ b/libs/pbd/fpu.cc @@ -40,7 +40,7 @@ using namespace std; FPU* FPU::_instance (0); -#ifndef COMPILER_MSVC +#ifndef PLATFORM_WINDOWS /* use __cpuid() as the name to match the MSVC intrinsic */ @@ -75,6 +75,10 @@ __cpuid(int regs[4], int cpuid_leaf) regs[3] = edx; } +#endif /* !PLATFORM_WINDOWS */ + +#ifndef COMPILER_MSVC + static uint64_t _xgetbv (uint32_t xcr) { @@ -90,10 +94,12 @@ _xgetbv (uint32_t xcr) #endif } -#define _XCR_XFEATURE_ENABLED_MASK 0 - #endif /* !COMPILER_MSVC */ +#ifndef _XCR_XFEATURE_ENABLED_MASK +#define _XCR_XFEATURE_ENABLED_MASK 0 +#endif + FPU* FPU::instance() { |