perl plugin: #undef macros before poisoning them.
[collectd.git] / src / perl.c
index 78e508a..4d77739 100644 (file)
@@ -41,6 +41,7 @@
 #include <perl.h>
 
 #if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__
+# undef sprintf
 # pragma GCC poison sprintf
 #endif