summaryrefslogtreecommitdiff
path: root/EXTERN.h
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-13 16:34:23 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:53:07 +0100
commitfbaa6c64d983277fa97268284a1ab6dd2a02959a (patch)
tree1c2b07f29e883208d5c83c79de0b522009f3a071 /EXTERN.h
parent4009c3ff1ea01581837a8fd419a882e219b298b8 (diff)
downloadperl-fbaa6c64d983277fa97268284a1ab6dd2a02959a.tar.gz
EXTERN.h: simplify cpp conditionals
Diffstat (limited to 'EXTERN.h')
-rw-r--r--EXTERN.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/EXTERN.h b/EXTERN.h
index db8db2b24f..b8c4512d37 100644
--- a/EXTERN.h
+++ b/EXTERN.h
@@ -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)