Code

src/collectd.h: #undef macros before poisoning them.
authorDoug MacEachern <dougm@hyperic.com>
Fri, 2 Jan 2009 21:46:34 +0000 (13:46 -0800)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 17 Jan 2009 09:45:53 +0000 (10:45 +0100)
Signed-off-by: Doug MacEachern <dougm@hyperic.com>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
src/collectd.h

index 6fed9002e02713d6ce59e13ea5840d207cd2acc0..277a610fe75a62e3c20bf90fd1df509d6afd1514 100644 (file)
 #endif
 
 #if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__
+# undef strcpy
+# undef strcat
+# undef strtok
 # pragma GCC poison strcpy strcat strtok
 #endif
 
  */
 #ifndef DONT_POISON_SPRINTF_YET
 # if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__
+#  undef sprintf
 #  pragma GCC poison sprintf
 # endif
 #endif