diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-09-18 04:19:25 +0300 |
---|---|---|
committer | hv <hv@crypt.org> | 2002-09-26 09:15:55 +0000 |
commit | 93189314521460c01625b05f7cfa81ac855affa9 (patch) | |
tree | 0daf409e1e27efb5bda55df447292e5f02193f4a /mg.c | |
parent | a29f6d035abe7b06489dad2706479b252a072f02 (diff) | |
download | perl-93189314521460c01625b05f7cfa81ac855affa9.tar.gz |
enable -ansi -pedantic
Message-ID: <20020917221925.GF85044@lyta.hut.fi>
p4raw-id: //depot/perl@17925
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2062,8 +2062,15 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg) STATUS_POSIX_SET(SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv)); break; case '!': + { +#ifdef VMS +# define PERL_VMS_BANG vaxc$errno +#else +# define PERL_VMS_BANG 0 +#endif SETERRNO(SvIOK(sv) ? SvIVX(sv) : SvOK(sv) ? sv_2iv(sv) : 0, - (SvIV(sv) == EVMSERR) ? 4 : vaxc$errno); + (SvIV(sv) == EVMSERR) ? 4 : PERL_VMS_BANG); + } break; case '<': PL_uid = SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv); |