From b7787f18a4d9a5b6205453133731406d627268af Mon Sep 17 00:00:00 2001 From: Andy Lester Date: Sun, 1 May 2005 10:07:55 -0500 Subject: printf.patch: Adding printf checking for gcc Message-ID: <20050501200755.GA30259@petdance.com> p4raw-id: //depot/perl@24365 --- perlio.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'perlio.h') diff --git a/perlio.h b/perlio.h index f0e735e16b..9183948ad4 100644 --- a/perlio.h +++ b/perlio.h @@ -210,10 +210,10 @@ PERL_EXPORT_C void PerlIO_clone(pTHX_ PerlInterpreter *proto, START_EXTERN_C #ifndef __attribute__format__ -#ifdef CHECK_FORMAT -#define __attribute__format__(x,y,z) __attribute__((__format__(x,y,z))) -#else -#define __attribute__format__(x,y,z) +# ifdef CHECK_FORMAT +# define __attribute__format__(x,y,z) __attribute__((format(x,y,z))) +# else +# define __attribute__format__(x,y,z) #endif #endif #ifndef NEXT30_NO_ATTRIBUTE -- cgit v1.2.1