summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-09-18 04:19:25 +0300
committerhv <hv@crypt.org>2002-09-26 09:15:55 +0000
commit93189314521460c01625b05f7cfa81ac855affa9 (patch)
tree0daf409e1e27efb5bda55df447292e5f02193f4a /sv.h
parenta29f6d035abe7b06489dad2706479b252a072f02 (diff)
downloadperl-93189314521460c01625b05f7cfa81ac855affa9.tar.gz
enable -ansi -pedantic
Message-ID: <20020917221925.GF85044@lyta.hut.fi> p4raw-id: //depot/perl@17925
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.h b/sv.h
index 94366fef66..acdadba7f7 100644
--- a/sv.h
+++ b/sv.h
@@ -152,7 +152,7 @@ perform the upgrade if necessary. See C<svtype>.
# define ATOMIC_DEC_AND_TEST(res, count) (res = (--count == 0))
#endif /* USE_5005THREADS */
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
# define SvREFCNT_inc(sv) \
({ \
SV *nsv = (SV*)(sv); \
@@ -1000,7 +1000,7 @@ otherwise.
#define SvPVutf8x_force(sv, lp) sv_pvutf8n_force(sv, &lp)
#define SvPVbytex_force(sv, lp) sv_pvbyten_force(sv, &lp)
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
# define SvIVx(sv) ({SV *nsv = (SV*)(sv); SvIV(nsv); })
# define SvUVx(sv) ({SV *nsv = (SV*)(sv); SvUV(nsv); })