aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/fpu_modes.h
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/fpu_modes.h')
-rw-r--r--Alc/fpu_modes.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/Alc/fpu_modes.h b/Alc/fpu_modes.h
index 750252fc..eb305967 100644
--- a/Alc/fpu_modes.h
+++ b/Alc/fpu_modes.h
@@ -7,16 +7,13 @@
typedef struct FPUCtl {
-#ifdef HAVE_FENV_H
- fenv_t flt_env;
-#ifdef _WIN32
- int round_mode;
-#endif
-#else
- int state;
-#endif
-#ifdef HAVE_SSE
- int sse_state;
+#if defined(__GNUC__) && defined(HAVE_SSE)
+ unsigned int sse_state;
+#elif defined(HAVE___CONTROL87_2)
+ unsigned int state;
+ unsigned int sse_state;
+#elif defined(HAVE__CONTROLFP)
+ unsigned int state;
#endif
} FPUCtl;
void SetMixerFPUMode(FPUCtl *ctl);