summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2006-11-13 10:25:08 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-11-13 11:38:02 +0000
commitcdfeb707a2638190212953e4a52d8460de223429 (patch)
treef8c354cdfde9c9b1601d8271086c4a4923ac2f57 /perl.h
parent3cd0a11a1a8c5cc6b632f666275eeafcb6f5c950 (diff)
downloadperl-cdfeb707a2638190212953e4a52d8460de223429.tar.gz
was RE: Perl_die() / Perl_croak()
From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <2C2E01334A940D4792B3E115F95B7226149377@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@29259
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 51f26e4fd0..5fa0da3f3e 100644
--- a/perl.h
+++ b/perl.h
@@ -3101,6 +3101,13 @@ typedef pthread_key_t perl_key;
# define NORETURN_FUNCTION_END /* NOTREACHED */ return 0
#endif
+/* Some OS warn on NULL format to printf */
+#ifdef PRINTF_FORMAT_NULL_OK
+# define __attribute__format__null_ok__(x,y,z) __attribute__format__(x,y,z)
+#else
+# define __attribute__format__null_ok__(x,y,z)
+#endif
+
#ifdef HAS_BUILTIN_EXPECT
# define EXPECT(expr,val) __builtin_expect(expr,val)
#else