From: Doug MacEachern Date: Fri, 2 Jan 2009 21:46:34 +0000 (-0800) Subject: src/collectd.h: #undef macros before poisoning them. X-Git-Tag: collectd-4.6.0~103^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3facef0f990e1b815daa2520b6b8c1d259a03d28;p=collectd.git src/collectd.h: #undef macros before poisoning them. Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- diff --git a/src/collectd.h b/src/collectd.h index 6fed9002..277a610f 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -255,6 +255,9 @@ #endif #if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__ +# undef strcpy +# undef strcat +# undef strtok # pragma GCC poison strcpy strcat strtok #endif @@ -266,6 +269,7 @@ */ #ifndef DONT_POISON_SPRINTF_YET # if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__ +# undef sprintf # pragma GCC poison sprintf # endif #endif