diff options
author | Chris Robinson <[email protected]> | 2012-05-03 12:15:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-05-03 12:15:51 -0700 |
commit | b4c7b3309a5c619b73faa62c934d0234d7e8e0f9 (patch) | |
tree | 93fb2b57810555a779eb508f150af2f0f6902949 /OpenAL32 | |
parent | 010a66487d9b92f21d5b41c2d5956d8b79b58324 (diff) |
Only use _FPU_GETCW and _FPU_SETCW for x86 targets
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index ccc18746..401e3e95 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -231,7 +231,7 @@ static __inline ALfloat cubic(ALfloat val0, ALfloat val1, ALfloat val2, ALfloat static __inline int SetMixerFPUMode(void) { -#if defined(_FPU_GETCW) && defined(_FPU_SETCW) +#if defined(_FPU_GETCW) && defined(_FPU_SETCW) && (defined(__i386__) || defined(__x86_64__)) fpu_control_t fpuState, newState; _FPU_GETCW(fpuState); newState = fpuState&~(_FPU_EXTENDED|_FPU_DOUBLE|_FPU_SINGLE | @@ -253,7 +253,7 @@ static __inline int SetMixerFPUMode(void) static __inline void RestoreFPUMode(int state) { -#if defined(_FPU_GETCW) && defined(_FPU_SETCW) +#if defined(_FPU_GETCW) && defined(_FPU_SETCW) && (defined(__i386__) || defined(__x86_64__)) fpu_control_t fpuState = state; _FPU_SETCW(fpuState); #elif defined(HAVE__CONTROLFP) |