From: serassio <> Date: Mon, 28 Aug 2006 16:17:17 +0000 (+0000) Subject: Windows port: Disable printf formatting check on native Windows. X-Git-Tag: SQUID_3_0_PRE5~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=798f959e17380e39c112ab2f6d22fe547608e27f;p=thirdparty%2Fsquid.git Windows port: Disable printf formatting check on native Windows. gcc don't recognize the Windows native 64 bit formatting tags causing the compile fail --- diff --git a/include/config.h b/include/config.h index ea9820184b..dce9030a7a 100644 --- a/include/config.h +++ b/include/config.h @@ -1,5 +1,5 @@ /* - * $Id: config.h,v 1.20 2006/08/20 18:30:28 serassio Exp $ + * $Id: config.h,v 1.21 2006/08/28 10:17:17 serassio Exp $ * * AUTHOR: Duane Wessels * @@ -406,7 +406,11 @@ typedef union { #define squid_srandom srand #endif -#if __GNUC__ +/* gcc doesn't recognize the Windows native 64 bit formatting tags causing + * the compile fail, so we must disable the check on native Windows. + */ + +#if __GNUC__ && !defined(_SQUID_MSWIN_) #define PRINTF_FORMAT_ARG1 __attribute__ ((format (printf, 1, 2))) #define PRINTF_FORMAT_ARG2 __attribute__ ((format (printf, 2, 3))) #define PRINTF_FORMAT_ARG3 __attribute__ ((format (printf, 3, 4)))