Skip to content

Commit

Permalink
Expect isnan in std:: namespace in C++
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Oct 22, 2012
1 parent 355c7a3 commit 470a94b
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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);
}

Expand Down

0 comments on commit 470a94b

Please sign in to comment.