From 5c6fcd9c66889842585a9ab39512d59604c8f98b Mon Sep 17 00:00:00 2001 From: eschnett Date: Wed, 5 Dec 2012 19:34:17 +0000 Subject: Don't define C++ wrappers isnan() etc. for CUDA git-svn-id: http://svn.cactuscode.org/flesh/trunk@4925 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/include/cctk_Math.h | 6 +++--- 1 file 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_ */ -- cgit v1.2.3