summaryrefslogtreecommitdiffstats
path: root/main/vlc/uclibc-define-fminf.patch
blob: 7524b7dafe2f2ee40c9edde045d1cb563a24dbc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -rupN a/src/audio_output/volume.c b/src/audio_output/volume.c
--- a/src/audio_output/volume.c	2013-09-12 17:18:34.000000000 +0200
+++ b/src/audio_output/volume.c	2013-09-26 15:43:35.889675700 +0200
@@ -33,6 +33,13 @@
 #include <vlc_aout_volume.h>
 #include "aout_internal.h"
 
+#ifdef __UCLIBC__
+float fminf(float a, float b)
+{
+    return (a < b) ? a : b;
+}
+#endif
+
 struct aout_volume
 {
     audio_volume_t object;