]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix cstdio compile errors
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 9 Feb 2014 08:55:01 +0000 (01:55 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 9 Feb 2014 08:55:01 +0000 (01:55 -0700)
compat/stdio.h

index 9db46782c4656ef7970330330970a5da98520c6a..a474d21f5531dcd1bc6c099e76584e0476762d2d 100644 (file)
@@ -46,8 +46,8 @@ inline FILE * tmpfile(void) { return tmpfile64(); }
 #endif /* __USE_FILE_OFFSET64 && !__REDIRECT */
 
 // Finally import the <cstdio> stuff we actually use
-#if HAVE_CSTDIO
-#include<cstdio>
+#if HAVE_CSTDIO && defined(__cplusplus)
+#include <cstdio>
 #endif
 
 #ifndef MAXPATHLEN