summaryrefslogtreecommitdiff
path: root/audio/libtunepimp/files/patch-lib-metadata.cpp
blob: 86cdd6dfb80b0a89fd88cbf99d123d69786d5d33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- lib/metadata.cpp.orig	2006-11-18 12:52:33.000000000 +0200
+++ lib/metadata.cpp	2010-06-07 10:43:10.556325912 +0300
@@ -26,6 +26,7 @@
 ----------------------------------------------------------------------------*/
 #include <math.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include "metadata.h"
 #include "../config.h"
 using namespace std;
@@ -35,6 +36,14 @@ extern "C"
    #include "astrcmp.h"
 }
 
+#ifndef min
+#define min(a,b) ((a) < (b) ? (a) : (b))
+#endif
+
+#ifndef max
+#define max(a,b) ((a) > (b) ? (a) : (b))
+#endif
+
 const int numAlbumTypeStrings = 11;
 const char *albumTypeStrings[] =
 {