mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
36 lines
752 B
Diff
36 lines
752 B
Diff
|
Description: Fix builds on architectures without _FPU_EXTENDED
|
||
|
Author: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
|
||
|
|
||
|
--- a/OpenAL32/Include/alu.h
|
||
|
+++ b/OpenAL32/Include/alu.h
|
||
|
@@ -224,6 +224,29 @@
|
||
|
return a0*mu*mu2 + a1*mu2 + a2*mu + a3;
|
||
|
}
|
||
|
|
||
|
+#if defined(_FPU_GETCW) && defined(_FPU_SETCW)
|
||
|
+ #ifndef _FPU_EXTENDED
|
||
|
+ #define _FPU_EXTENDED 0
|
||
|
+ #endif
|
||
|
+ #ifndef _FPU_DOUBLE
|
||
|
+ #define _FPU_DOUBLE 0
|
||
|
+ #endif
|
||
|
+ #ifndef _FPU_SINGLE
|
||
|
+ #define _FPU_SINGLE 0
|
||
|
+ #endif
|
||
|
+ #ifndef _FPU_RC_NEAREST
|
||
|
+ #define _FPU_RC_NEAREST 0
|
||
|
+ #endif
|
||
|
+ #ifndef _FPU_RC_DOWN
|
||
|
+ #define _FPU_RC_DOWN 0
|
||
|
+ #endif
|
||
|
+ #ifndef _FPU_RC_UP
|
||
|
+ #define _FPU_RC_UP 0
|
||
|
+ #endif
|
||
|
+ #ifndef _FPU_RC_ZERO
|
||
|
+ #define _FPU_RC_ZERO 0
|
||
|
+ #endif
|
||
|
+#endif
|
||
|
|
||
|
static __inline int SetMixerFPUMode(void)
|
||
|
{
|