Add guard around __printflike

This commit is contained in:
Emil Mikulic 2011-05-03 20:50:31 +10:00
parent bfd58235c5
commit 8cdcad43c2

View File

@ -75,6 +75,7 @@ static const int debug = 1;
#define O_EXLOCK O_EXCL
#endif
#ifndef __printflike
#ifdef __GNUC__
/* [->] borrowed from FreeBSD's src/sys/sys/cdefs.h,v 1.102.2.2.2.1 */
#define __printflike(fmtarg, firstvararg) \
@ -83,6 +84,7 @@ static const int debug = 1;
#else
#define __printflike(fmtarg, firstvararg)
#endif
#endif
/* [->] borrowed from FreeBSD's src/sys/sys/systm.h,v 1.276.2.7.4.1 */
#ifndef CTASSERT /* Allow lint to override */