]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
MS VisualStudio C++ needs explicit extern "C" declaration when accessing to
authorserassio <>
Mon, 22 Aug 2005 00:33:24 +0000 (00:33 +0000)
committerserassio <>
Mon, 22 Aug 2005 00:33:24 +0000 (00:33 +0000)
C external variables

lib/MemPool.cc

index 8f04b1d7d28b459584bef7beefbe697e6e52af5c..f272f53e7d304e4d5c2f9b7708022d88906f6898 100644 (file)
@@ -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;