summaryrefslogtreecommitdiff
path: root/perlio.h
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-23 14:31:33 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-23 14:31:33 +0000
commitb79c357a0c9c7ce8cc63f8054dca48fefcb408f8 (patch)
tree96114912a1bacdf778484dc532ee204a1e86afc1 /perlio.h
parentc658fda90cbfa7f500b7be4479ba1ccd8781566d (diff)
downloadperl-b79c357a0c9c7ce8cc63f8054dca48fefcb408f8.tar.gz
Attribute compilation fix for Windows by Andy Lester
p4raw-id: //depot/perl@24552
Diffstat (limited to 'perlio.h')
-rw-r--r--perlio.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/perlio.h b/perlio.h
index 302228299f..8ff2bff2f4 100644
--- a/perlio.h
+++ b/perlio.h
@@ -210,7 +210,11 @@ PERL_EXPORT_C void PerlIO_clone(pTHX_ PerlInterpreter *proto,
START_EXTERN_C
#ifndef __attribute__format__
-# define __attribute__format__(x,y,z) __attribute__((format(x,y,z)))
+# ifdef HASATTRIBUTE_FORMAT
+# define __attribute__format__(x,y,z) __attribute__((format(x,y,z)))
+# else
+# define __attribute__format__(x,y,z)
+# endif
#endif
#ifndef PerlIO_init
PERL_EXPORT_C void PerlIO_init(pTHX);