diff options
author | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-12-05 19:34:17 +0000 |
---|---|---|
committer | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-12-05 19:34:17 +0000 |
commit | 5c6fcd9c66889842585a9ab39512d59604c8f98b (patch) | |
tree | 3bedb419ab91db69ee49cfd7b8c9b0067e5cc5b1 | |
parent | 90210c4c972573019a9bb297738e88d712817302 (diff) |
Don't define C++ wrappers isnan() etc. for CUDA
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4925 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r-- | src/include/cctk_Math.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/cctk_Math.h b/src/include/cctk_Math.h index ac1029b4..bd7c3f6f 100644 --- a/src/include/cctk_Math.h +++ b/src/include/cctk_Math.h @@ -39,7 +39,7 @@ int CCTK_signbit(double x); -#ifdef __cplusplus +#if defined __cplusplus && ! defined __CUDACC__ /* If necessary, provide fallback C implementations for C++, using the routines declared above. */ @@ -185,8 +185,8 @@ namespace std { #define isnormal Cactus::good_isnormal #define signbit Cactus::good_signbit -#endif +#endif /* #if defined __cplusplus && ! defined __CUDACC__ */ -#endif +#endif /* #ifndef _CCTK_MATH_H_ */ |