summaryrefslogtreecommitdiff
path: root/packages/efl/ewl/minmax.patch
blob: cd8723e9a31acbc21fa9422f4b4ad2590f49d779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -Nur ewl-0.0.4.004~/src/lib/Ewl.h.in ewl-0.0.4.004/src/lib/Ewl.h.in
--- ewl-0.0.4.004~/src/lib/Ewl.h.in	2005-09-29 18:26:11.000000000 -0700
+++ ewl-0.0.4.004/src/lib/Ewl.h.in	2005-09-29 18:26:55.000000000 -0700
@@ -254,6 +254,14 @@
 extern"C" {
 #endif
 
+#ifndef MAX
+#define MAX(a, b) (a > b ? a : b)
+#endif
+
+#ifndef MIN
+#define MIN(a, b) (a < b ? a : b)
+#endif
+
 #include <Evas.h>
 #include <Edje.h>
 #include <Ecore.h>