From 50d52f8f9b160bd83c6ae3922128e980b223cfbe Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Fri, 10 Aug 2012 15:39:50 +0200 Subject: [PATCH] i3bar/util.h: Prepare for libi3.h inclusion --- i3bar/include/util.h | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.5