diff options
author | Craig A. Berry <craigberry@mac.com> | 2007-02-11 23:48:46 +0000 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2007-02-11 23:48:46 +0000 |
commit | dfffea7081542ae314496a23ccd6393030e6c2c9 (patch) | |
tree | 2da3f256a4eef486d6a0309c0963496b23956839 /vms | |
parent | 338de517f34e17038e0af3cf9c061dae7a8b9aa8 (diff) | |
download | perl-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.c | 22 |
1 files changed, 8 insertions, 14 deletions
@@ -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; /* |