i3bar/util.h: Prepare for libi3.h inclusion
This commit is contained in:
parent
7f22d4fe32
commit
50d52f8f9b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue