]> git.sur5r.net Git - i3/i3/commitdiff
i3bar/util.h: Prepare for libi3.h inclusion
authorQuentin Glidic <sardemff7+git@sardemff7.net>
Fri, 10 Aug 2012 13:39:50 +0000 (15:39 +0200)
committerQuentin Glidic <sardemff7+git@sardemff7.net>
Mon, 13 Aug 2012 09:29:22 +0000 (11:29 +0200)
i3bar/include/util.h

index eb05ed0828ed7dc236da3e022d364c6d43a03d86..262d7750c80bc7c6ef6c70363e116d50b81e4bcb 100644 (file)
     } \
 } 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)