i3bar/util.h: Prepare for libi3.h inclusion

next
Quentin Glidic 2012-08-10 15:39:50 +02:00
parent 7f22d4fe32
commit 50d52f8f9b
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@
} \
} 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)