From 470a94b3a1f63cf3f21dc6f1914dff8420b43011 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 22 Oct 2012 14:23:14 -0400 Subject: Expect isnan in std:: namespace in C++ --- Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Auxiliary/Cactus') diff --git a/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.h b/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.h index 5d1b17e..38ae740 100644 --- a/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.h +++ b/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.h @@ -63,6 +63,9 @@ extern "C" { KRANC_WHERE static inline CCTK_REAL sgn(CCTK_REAL x) { +#ifdef __cplusplus + using namespace std; +#endif return x==(CCTK_REAL)0.0 ? (CCTK_REAL)0.0 : copysign((CCTK_REAL)1.0, x); } -- cgit v1.2.3