From ec1c82dff1a02837730cd85ca14c9f97f74eb3cf Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sat, 10 Sep 2011 13:28:19 +0200 Subject: Remove unneeded fallback definitions of dNOOP, dVAR etc from POSIX.xs As POSIX.xs is not dual life, we can always rely on these macros being defined for us in perl.h. (And these days, dual life XS code should let Devel::PPPort take care of this sort of thing.) --- ext/POSIX/POSIX.xs | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'ext/POSIX') diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 175b242970..392f35f56d 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -82,26 +82,6 @@ char *tzname[] = { "" , "" }; #endif #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 - #if defined(__VMS) && !defined(__POSIX_SOURCE) # include /* LIB$_INVARG constant */ # include /* prototype for lib$ediv() */ -- cgit v1.2.1