From 3facef0f990e1b815daa2520b6b8c1d259a03d28 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 2 Jan 2009 13:46:34 -0800 Subject: [PATCH] src/collectd.h: #undef macros before poisoning them. Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- src/collectd.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2