aboutsummaryrefslogtreecommitdiffstats
path: root/main/wine/uclibc-fmaxf-fminf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/wine/uclibc-fmaxf-fminf.patch')
-rw-r--r--main/wine/uclibc-fmaxf-fminf.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/wine/uclibc-fmaxf-fminf.patch b/main/wine/uclibc-fmaxf-fminf.patch
new file mode 100644
index 0000000000..1f26cb8b96
--- /dev/null
+++ b/main/wine/uclibc-fmaxf-fminf.patch
@@ -0,0 +1,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