elm_conform.c : MIN and MAX not always defined
authorVincent Torri <vincent.torri@gmail.com>
Wed, 18 May 2011 16:49:20 +0000 (16:49 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Wed, 18 May 2011 16:49:20 +0000 (16:49 +0000)
SVN revision: 59514

src/lib/elm_conform.c

index a64c410..dea5bad 100644 (file)
@@ -1,6 +1,14 @@
 #include <Elementary.h>
 #include "elm_priv.h"
 
+#ifndef MIN
+# define MIN(a,b) ((a) < (b)) ? (a) : (b)
+#endif
+
+#ifndef MAX
+# define MAX(a,b) ((a) < (b)) ? (b) : (a)
+#endif
+
 /**
  * @defgroup Conformant Conformant
  *