summaryrefslogtreecommitdiff
path: root/INTERN.h
diff options
context:
space:
mode:
Diffstat (limited to 'INTERN.h')
-rw-r--r--INTERN.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/INTERN.h b/INTERN.h
index 7a9d475fa3..d89d2e68a4 100644
--- a/INTERN.h
+++ b/INTERN.h
@@ -7,8 +7,21 @@
*
*/
+/*
+ * EXT designates a global var which is defined in perl.h
+ * dEXT designates a global var which is defined in another
+ * file, so we can't count on finding it in perl.h
+ * (this practice should be avoided).
+ */
#undef EXT
-#define EXT
+#undef dEXT
+#if defined(VMS) && !defined(__GNUC__)
+# define EXT globaldef {"$GLOBAL_RW_VARS"} noshare
+# define dEXT globaldef {"$GLOBAL_RW_VARS"} noshare
+#else
+# define EXT
+# define dEXT
+#endif
#undef INIT
#define INIT(x) = x