From 3b41b5fbd145e658cf87e6d5b6d471dbc65ecf44 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 3 Sep 2006 02:17:57 +0000 Subject: [PATCH] Moved the include of cmath out of the #ifdef This avoids stuff like /usr/include/c++/4.0.0/cmath:85: error: template with C linkage /usr/include/c++/4.0.0/cmath: In function 'float std::abs(float)': /usr/include/c++/4.0.0/cmath:92: error: declaration of C function 'float std::abs(float)' conflicts with /usr/include/c++/4.0.0/cmath:88: error: previous declaration 'double std::abs(double)' here This was SVN commit r4291. --- source/lib/sysdep/sysdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/sysdep/sysdep.h b/source/lib/sysdep/sysdep.h index e8d3d1bd66..d217c1bf4a 100644 --- a/source/lib/sysdep/sysdep.h +++ b/source/lib/sysdep/sysdep.h @@ -25,6 +25,7 @@ #include "lib/config.h" #include "lib/debug.h" // ErrorReaction +#include // some functions among the sysdep API are implemented as macros // that redirect to the platform-dependent version. this is done where @@ -149,7 +150,6 @@ extern void* alloca(size_t size); // #ifndef and define it if it's not there. // Since sysdep.h will normally be included before cmath is, make sure we load // cmath first to let it define/undef that macro. -# include # ifndef isfinite # define isfinite std::isfinite # define isnan std::isnan