perl plugin: #undef macros before poisoning them.
authorJim Radford <radford@galvanix.com>
Sat, 10 Aug 2013 16:29:06 +0000 (09:29 -0700)
committerJim Radford <radford@galvanix.com>
Sat, 10 Aug 2013 16:29:30 +0000 (09:29 -0700)
This fixes --enable-debug builds.

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