mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
Made sure EIGEN_HAS_C99_MATH is defined when compiling OpenCL code
This commit is contained in:
parent
8910442e19
commit
9e03dfb452
@ -381,7 +381,7 @@
|
|||||||
((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)) \
|
((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)) \
|
||||||
|| (defined(__GNUC__) && defined(_GLIBCXX_USE_C99)) \
|
|| (defined(__GNUC__) && defined(_GLIBCXX_USE_C99)) \
|
||||||
|| (defined(_LIBCPP_VERSION) && !defined(_MSC_VER)) \
|
|| (defined(_LIBCPP_VERSION) && !defined(_MSC_VER)) \
|
||||||
|| (EIGEN_COMP_MSVC >= 1900))
|
|| (EIGEN_COMP_MSVC >= 1900) || defined(__SYCL_DEVICE_ONLY__))
|
||||||
#define EIGEN_HAS_C99_MATH 1
|
#define EIGEN_HAS_C99_MATH 1
|
||||||
#else
|
#else
|
||||||
#define EIGEN_HAS_C99_MATH 0
|
#define EIGEN_HAS_C99_MATH 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user