summaryrefslogtreecommitdiff
path: root/packages/nonworking/efl/ewl/minmax.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/nonworking/efl/ewl/minmax.patch')
-rw-r--r--packages/nonworking/efl/ewl/minmax.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/nonworking/efl/ewl/minmax.patch b/packages/nonworking/efl/ewl/minmax.patch
new file mode 100644
index 0000000000..cd8723e9a3
--- /dev/null
+++ b/packages/nonworking/efl/ewl/minmax.patch
@@ -0,0 +1,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>