]> git.sur5r.net Git - i3/i3/blobdiff - i3bar/include/util.h
Merge branch 'master' into next
[i3/i3] / i3bar / include / util.h
index eb05ed0828ed7dc236da3e022d364c6d43a03d86..43c56c58d3e93794d6f56becc86ae128a73d84bb 100644 (file)
@@ -11,7 +11,9 @@
 #include "queue.h"
 
 /* Get the maximum/minimum of x and y */
+#undef MAX
 #define MAX(x,y) ((x) > (y) ? (x) : (y))
+#undef MIN
 #define MIN(x,y) ((x) < (y) ? (x) : (y))
 
 /* Securely free p */
     } \
 } while(0)
 
+/* We will include libi3.h which define its own version of ELOG.
+ * We want *our* version, so we undef the libi3 one. */
+#if defined(ELOG)
+#undef ELOG
+#endif
 #define ELOG(fmt, ...) do { \
     fprintf(stderr, "[%s:%d] ERROR: " fmt, __FILE__, __LINE__, ##__VA_ARGS__); \
 } while(0)