Code

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 78e508ae4d1f1bb7c0b9ae5c9ca340b9685e79e6..4d77739517f2efe2038f1d7afacf25d6cf2a5a9d 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