]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Compat: define #define PRINTF_FORMAT_ARG* for non-gcc compilers
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 14 Dec 2010 03:35:01 +0000 (20:35 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 14 Dec 2010 03:35:01 +0000 (20:35 -0700)
compat/compat_shared.h

index 3ca876b2c38418eb2239a873c45c71f3aa55b3d9..94644419ba35d29242e3809bb5ba8415254232d8 100644 (file)
@@ -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 */