~ubuntu-branches/ubuntu/utopic/openal-soft/utopic

« back to all changes in this revision

Viewing changes to debian/patches/no-fpuextended.patch

  • Committer: Package Import Robot
  • Author(s): Michael Terry
  • Date: 2012-05-22 10:14:53 UTC
  • mfrom: (7.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20120522101453-knsv1m1m8vl5ccfp
Tags: 1:1.14-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  - Add a symbols file for libopenal1
* debian/libopenal1.symbols:
  - Update for 1.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Fix builds on architectures without _FPU_EXTENDED
 
2
Author: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
 
3
 
 
4
--- a/OpenAL32/Include/alu.h
 
5
+++ b/OpenAL32/Include/alu.h
 
6
@@ -224,6 +224,29 @@
 
7
     return a0*mu*mu2 + a1*mu2 + a2*mu + a3;
 
8
 }
 
9
 
 
10
+#if defined(_FPU_GETCW) && defined(_FPU_SETCW)
 
11
+ #ifndef _FPU_EXTENDED
 
12
+  #define _FPU_EXTENDED        0
 
13
+ #endif
 
14
+ #ifndef _FPU_DOUBLE
 
15
+  #define _FPU_DOUBLE  0
 
16
+ #endif
 
17
+ #ifndef _FPU_SINGLE
 
18
+  #define _FPU_SINGLE  0
 
19
+ #endif
 
20
+ #ifndef _FPU_RC_NEAREST
 
21
+  #define _FPU_RC_NEAREST      0
 
22
+ #endif
 
23
+ #ifndef _FPU_RC_DOWN
 
24
+  #define _FPU_RC_DOWN 0
 
25
+ #endif
 
26
+ #ifndef _FPU_RC_UP
 
27
+  #define _FPU_RC_UP   0
 
28
+ #endif
 
29
+ #ifndef _FPU_RC_ZERO
 
30
+  #define _FPU_RC_ZERO 0
 
31
+ #endif
 
32
+#endif
 
33
 
 
34
 static __inline int SetMixerFPUMode(void)
 
35
 {