LC_COLLATE.
[p5sagit/p5-mst-13.2.git] / EXTERN.h
index 765c558..dedd379 100644 (file)
--- a/EXTERN.h
+++ b/EXTERN.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 extern
+#undef dEXT
+#if defined(VMS) && !defined(__GNUC__)
+#  define EXT globalref
+#  define dEXT globaldef {"$GLOBAL_RW_VARS"} noshare
+#else
+#  define EXT extern
+#  define dEXT
+#endif
 
 #undef INIT
 #define INIT(x)