diff --git a/i3bar/include/util.h b/i3bar/include/util.h index eb05ed08..262d7750 100644 --- a/i3bar/include/util.h +++ b/i3bar/include/util.h @@ -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)