This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove Symbian compatibility macros from Storable, now supplied by ppport.h
authorNicholas Clark <nick@ccl4.org>
Sat, 10 Sep 2011 11:43:57 +0000 (13:43 +0200)
committerNicholas Clark <nick@ccl4.org>
Wed, 14 Sep 2011 09:49:37 +0000 (11:49 +0200)
ppport.h provides default definitions for PERL_UNUSED_DECL, dNOOP and dVAR,
so no need to duplicate this in Storable.xs

dist/Storable/Storable.pm
dist/Storable/Storable.xs

index 95fe93c..76d5486 100644 (file)
@@ -21,7 +21,7 @@ package Storable; @ISA = qw(Exporter);
 
 use vars qw($canonical $forgive_me $VERSION);
 
-$VERSION = '2.31';
+$VERSION = '2.32';
 
 BEGIN {
     if (eval { local $SIG{__DIE__}; require Log::Agent; 1 }) {
index 8ce0bec..5d95fe5 100644 (file)
@@ -103,26 +103,6 @@ typedef double NV;                 /* Older perls lack the NV type */
     } STMT_END
 #endif
 
-#ifndef PERL_UNUSED_DECL
-#  ifdef HASATTRIBUTE
-#    if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
-#      define PERL_UNUSED_DECL
-#    else
-#      define PERL_UNUSED_DECL __attribute__((unused))
-#    endif
-#  else
-#    define PERL_UNUSED_DECL
-#  endif
-#endif
-
-#ifndef dNOOP
-#define dNOOP extern int Perl___notused PERL_UNUSED_DECL
-#endif
-
-#ifndef dVAR
-#define dVAR dNOOP
-#endif
-
 #ifndef HvRITER_set
 #  define HvRITER_set(hv,r)    (HvRITER(hv) = r)
 #endif