]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: Disable printf formatting check on native Windows.
authorserassio <>
Mon, 28 Aug 2006 16:17:17 +0000 (16:17 +0000)
committerserassio <>
Mon, 28 Aug 2006 16:17:17 +0000 (16:17 +0000)
gcc don't recognize the Windows native 64 bit formatting tags causing
the compile fail

include/config.h

index ea9820184bc0258147ea3bda1b4ba5abd168ced8..dce9030a7a4f6403d11a5e1ab1f439208709e857 100644 (file)
@@ -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)))