]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Compat: static functions cannot be passed externally
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 16 Dec 2010 02:25:55 +0000 (19:25 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 16 Dec 2010 02:25:55 +0000 (19:25 -0700)
src/StatHist.cc

index f224ea92d96a4cda0316c898152f4910759b09e9..6b82e9bfd5e229d2514738f5caec3b83085bd028 100644 (file)
@@ -53,18 +53,13 @@ static void statHistInit(StatHist * H, int capacity, hbase_f * val_in, hbase_f *
 static int statHistBin(const StatHist * H, double v);
 static double statHistVal(const StatHist * H, int bin);
 static StatHistBinDumper statHistBinDumper;
-#if !defined(_SQUID_HPUX_) || !defined(__GNUC__)
-/*
- * HP-UX and GCC (2.8?) give strange errors when these simple
- * functions are static.
- */
+
 namespace Math
 {
-static hbase_f Log;
-static hbase_f Exp;
-static hbase_f Null;
+hbase_f Log;
+hbase_f Exp;
+hbase_f Null;
 };
-#endif
 
 /* low level init, higher level functions has less params */
 static void
@@ -277,9 +272,6 @@ statHistDump(const StatHist * H, StoreEntry * sentry, StatHistBinDumper * bd)
 }
 
 /* log based histogram */
-#if !defined(_SQUID_HPUX_) || !defined(__GNUC__)
-static
-#endif
 double
 Math::Log(double x)
 {
@@ -287,9 +279,6 @@ Math::Log(double x)
     return log(x + 1.0);
 }
 
-#if !defined(_SQUID_HPUX_) || !defined(__GNUC__)
-static
-#endif
 double
 Math::Exp(double x)
 {
@@ -304,9 +293,6 @@ statHistLogInit(StatHist * H, int capacity, double min, double max)
 
 /* linear histogram for enums */
 /* we want to be have [-1,last_enum+1] range to track out of range enums */
-#if !defined(_SQUID_HPUX_) || !defined(__GNUC__)
-static
-#endif
 double
 Math::Null(double x)
 {