This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix SDBM_File builds using gcc on Win32
authorTony Cook <tony@develop-help.com>
Thu, 22 Jan 2015 04:59:23 +0000 (15:59 +1100)
committerTony Cook <tony@develop-help.com>
Thu, 22 Jan 2015 04:59:23 +0000 (15:59 +1100)
b488d167b0 removed the -DPERL_STATIC_SYMS definition to allow imported
perl variables to be seen correctly, but this meant gcc builds on Win32
considered:

  EXTCONST datum nullitem

as an import.

Change the EXTCONST to extern const so the declaration behaves as it did
with -DPERL_STATIC_SYMS.

ext/SDBM_File/sdbm.h

index 2ada7a1..e7cf730 100644 (file)
@@ -51,7 +51,7 @@ typedef struct {
        int dsize;
 } datum;
 
-EXTCONST datum nullitem
+extern const datum nullitem
 #ifdef DOINIT
                         = {0, 0}
 #endif