blob: 1cc6ad277b21fd7c3a1d2c2c3e39f55179feb8c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
diff --git a/include/math.h b/include/math.h
index 4e6304a..4d245d4 100644
--- a/include/math.h
+++ b/include/math.h
@@ -290,6 +290,9 @@ float truncf(float x);
long double truncl(long double x);
*/
+# ifdef __CUDACC__
+# include <math_cuda.h>
+# else
# include <__config>
@@ -323,7 +326,7 @@ extern "C++" {
# undef isinf
# endif
-# ifdef isnan
+# if defined(isnan) && !defined(_LIBCPP_MSVCRT)
# undef isnan
# endif
@@ -503,6 +506,8 @@ using std::__math::trunc;
# endif // __cplusplus
+# endif // __CUDACC__
+
#else // _LIBCPP_MATH_H
// This include lives outside the header guard in order to support an MSVC
|