aboutsummaryrefslogtreecommitdiffstats
path: root/main/wine/uclibc-fmaxf-fminf.patch
blob: 1f26cb8b96397f0c1787d6dc82b14416bdfb1efd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ./dlls/d3dx9_36/mesh.c.orig
+++ ./dlls/d3dx9_36/mesh.c
@@ -40,6 +40,18 @@
 #include "wine/list.h"
 #include "d3dx9_36_private.h"
 
+#ifdef __UCLIBC__
+float fmaxf(float a, float b)
+{
+	return (a > b) ? a : b;
+}
+
+float fminf(float a, float b)
+{
+	return (a < b) ? a : b;
+}
+#endif
+
 WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
 
 typedef struct ID3DXMeshImpl