]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows: include 'functional' before defining stdlib API wrapper functions
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 25 May 2013 09:02:59 +0000 (03:02 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 25 May 2013 09:02:59 +0000 (03:02 -0600)
We currently use of #define to replace functions in the stdlib API with
versions which use the Windows API and error reporting.
Some of these result in precompiler replacement of systen internal
symbols. In this case member functions called bind() in templates of
<functional> API get replaced by Squid::bind() symbol.

compat/os/mswindows.h

index af247c60705cd2d6c36cb91e251d38f39eb8ee37..b1932c81da40445bcb76b958f04095e6279d5364 100644 (file)
@@ -461,6 +461,9 @@ index(const char *s, int c)
     return (char *)strchr(s,c);
 }
 
+// stdlib <functional> definitions are required before std API redefinitions.
+#include <functional>
+
 /** \cond AUTODOCS-IGNORE */
 namespace Squid
 {