From: <he...@us...> - 2012-02-16 12:18:39
|
Revision: 293 http://simspark.svn.sourceforge.net/simspark/?rev=293&view=rev Author: hedayat Date: 2012-02-16 12:18:29 +0000 (Thu, 16 Feb 2012) Log Message: ----------- Fix GCC 4.7 compilation error Modified Paths: -------------- trunk/spark/ChangeLog trunk/spark/lib/salt/gmath.h Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2012-02-14 15:51:26 UTC (rev 292) +++ trunk/spark/ChangeLog 2012-02-16 12:18:29 UTC (rev 293) @@ -1,3 +1,8 @@ +2012-02-16 Hedayat Vatankhah <hed...@gm...> + + * lib/salt/gmath.h: + - add missing std:: prefix for isfinite (fix gcc 4.7 compile error) + 2012-02-14 Sander van Dijk <sgv...@gm...> * lib/zeitgeist/scriptserver/scriptserver.cpp (RunInitScript): Modified: trunk/spark/lib/salt/gmath.h =================================================================== --- trunk/spark/lib/salt/gmath.h 2012-02-14 15:51:26 UTC (rev 292) +++ trunk/spark/lib/salt/gmath.h 2012-02-16 12:18:29 UTC (rev 293) @@ -44,7 +44,7 @@ #define M_PI 3.1415926535897932384626433832795 #endif -#ifndef M_PI_2 +#ifndef M_PI_2 #define M_PI_2 1.57079632679489661923132169164 /* pi/2 */ #endif @@ -226,7 +226,7 @@ assert(std::numeric_limits<TYPE>::has_infinity); return (std::numeric_limits<double>::infinity() != f); #else - return isfinite(f); + return std::isfinite(f); #endif } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |