diff options
author | Aaron Crane <arc@cpan.org> | 2017-10-13 16:34:23 +0200 |
---|---|---|
committer | Aaron Crane <arc@cpan.org> | 2017-10-21 16:53:07 +0100 |
commit | fbaa6c64d983277fa97268284a1ab6dd2a02959a (patch) | |
tree | 1c2b07f29e883208d5c83c79de0b522009f3a071 /EXTERN.h | |
parent | 4009c3ff1ea01581837a8fd419a882e219b298b8 (diff) | |
download | perl-fbaa6c64d983277fa97268284a1ab6dd2a02959a.tar.gz |
EXTERN.h: simplify cpp conditionals
Diffstat (limited to 'EXTERN.h')
-rw-r--r-- | EXTERN.h | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -26,18 +26,16 @@ # define dEXT # define EXTCONST extern const # define dEXTCONST const +# elif defined(PERLDLL) || defined(__SYMBIAN32__) +# define EXT EXTERN_C __declspec(dllexport) +# define dEXT +# define EXTCONST EXTERN_C __declspec(dllexport) const +# define dEXTCONST const # else -# if defined(PERLDLL) || defined(__SYMBIAN32__) -# define EXT EXTERN_C __declspec(dllexport) -# define dEXT -# define EXTCONST EXTERN_C __declspec(dllexport) const -# define dEXTCONST const -# else -# define EXT EXTERN_C __declspec(dllimport) -# define dEXT -# define EXTCONST EXTERN_C __declspec(dllimport) const -# define dEXTCONST const -# endif +# define EXT EXTERN_C __declspec(dllimport) +# define dEXT +# define EXTCONST EXTERN_C __declspec(dllimport) const +# define dEXTCONST const # endif # else # if defined(__CYGWIN__) && defined(USEIMPORTLIB) |