perl-module: Avoid VERSION redefinition warning from compiler.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 27 Jun 2017 21:52:40 +0000 (17:52 -0400)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 27 Jun 2017 21:52:40 +0000 (17:52 -0400)
If the PSPP version includes a suffix like "-pre1", then Perl will strip
that suffix from the version it passes to the compiler using -DVERSION=...,
and <config.h> will re-define it with the full version string.  This causes
a warning.

This change avoids the warning.  I am not yet aware of a new problem that
it causes.

perl-module/PSPP.xs

index 909ffe9e5324a500ff833f09d2e11a39e22d89af..74ea561170b00b3b16917aa8fe1c5a2c9fa24309 100644 (file)
@@ -17,6 +17,7 @@
    02110-1301, USA. */
 
 
+#undef VERSION
 #include <config.h>
 
 /* The Gnulib "strftime" module defines my_strftime in <config.h> for use by