summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2007-02-11 23:48:46 +0000
committerCraig A. Berry <craigberry@mac.com>2007-02-11 23:48:46 +0000
commitdfffea7081542ae314496a23ccd6393030e6c2c9 (patch)
tree2da3f256a4eef486d6a0309c0963496b23956839 /vms
parent338de517f34e17038e0af3cf9c061dae7a8b9aa8 (diff)
downloadperl-dfffea7081542ae314496a23ccd6393030e6c2c9.tar.gz
In vms/vms.c's declaration of the LIB$INITIALIZE psect, try to get
all of the attributes we need without any of the ones we don't, and try to be friendly to older compilers without too much damage to readability. Thanks to Saku Setala for the problem report. p4raw-id: //depot/perl@30216
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/vms/vms.c b/vms/vms.c
index b5256eac35..10f46f2e52 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -12532,25 +12532,19 @@ static int set_features
}
#ifdef __DECC
-/* DECC dependent attributes */
-#if __DECC_VER < 60560002
-#define relative
-#define not_executable
-#else
-#define relative ,rel
-#define not_executable ,noexe
-#endif
#pragma nostandard
#pragma extern_model save
#pragma extern_model strict_refdef "LIB$INITIALIZ" nowrt
-#endif
const __align (LONGWORD) int spare[8] = {0};
-/* .psect LIB$INITIALIZE, NOPIC, USR, CON, REL, GBL, NOSHR, NOEXE, RD, */
-/* NOWRT, LONG */
-#ifdef __DECC
-#pragma extern_model strict_refdef "LIB$INITIALIZE" con, gbl,noshr, \
- nowrt,noshr relative not_executable
+
+/* .psect LIB$INITIALIZE, NOPIC, USR, CON, REL, GBL, NOSHR, NOEXE, RD, NOWRT, LONG */
+#if __DECC_VER >= 60560002
+#pragma extern_model strict_refdef "LIB$INITIALIZE" nopic, con, rel, gbl, noshr, noexe, nowrt, long
+#else
+#pragma extern_model strict_refdef "LIB$INITIALIZE" nopic, con, gbl, noshr, nowrt, long
#endif
+#endif /* __DECC */
+
const long vms_cc_features = (const long)set_features;
/*