From: Amos Jeffries Date: Tue, 14 Dec 2010 03:35:01 +0000 (-0700) Subject: Compat: define #define PRINTF_FORMAT_ARG* for non-gcc compilers X-Git-Tag: take00~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aea9544abfb5a621b665f18aab0f3126741417b1;p=thirdparty%2Fsquid.git Compat: define #define PRINTF_FORMAT_ARG* for non-gcc compilers --- diff --git a/compat/compat_shared.h b/compat/compat_shared.h index 3ca876b2c3..94644419ba 100644 --- a/compat/compat_shared.h +++ b/compat/compat_shared.h @@ -240,6 +240,10 @@ const char * squid_strnstr(const char *s, const char *find, size_t slen); #if !defined(PRINTF_FORMAT_ARG3) #define PRINTF_FORMAT_ARG3 __attribute__ ((format (printf, 3, 4))) #endif +#else /* !__GNU__ */ +#define PRINTF_FORMAT_ARG1 +#define PRINTF_FORMAT_ARG2 +#define PRINTF_FORMAT_ARG3 #endif #endif /* _SQUID_COMPAT_SHARED_H */