From: serassio <> Date: Mon, 22 Aug 2005 00:33:24 +0000 (+0000) Subject: MS VisualStudio C++ needs explicit extern "C" declaration when accessing to X-Git-Tag: SQUID_3_0_PRE4~676 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=116c457051ada5177c7121827f29487210c08f8b;p=thirdparty%2Fsquid.git MS VisualStudio C++ needs explicit extern "C" declaration when accessing to C external variables --- diff --git a/lib/MemPool.cc b/lib/MemPool.cc index 8f04b1d7d2..f272f53e7d 100644 --- a/lib/MemPool.cc +++ b/lib/MemPool.cc @@ -1,6 +1,6 @@ /* - * $Id: MemPool.cc,v 1.1 2004/09/04 12:40:20 robertc Exp $ + * $Id: MemPool.cc,v 1.2 2005/08/21 18:33:24 serassio Exp $ * * DEBUG: section 63 Low Level Memory Pool Management * AUTHOR: Alex Rousskov, Andres Kroonmaa, Robert Collins @@ -97,7 +97,7 @@ * XXX This is a boundary violation between lib and src.. would be good * if it could be solved otherwise, but left for now. */ -extern time_t squid_curtime; +extern "C" time_t squid_curtime; /* local data */ static MemPoolMeter TheMeter;