Made sure EIGEN_HAS_C99_MATH is defined when compiling OpenCL code

This commit is contained in:
Benoit Steiner 2016-12-17 09:23:37 -08:00
parent 8910442e19
commit 9e03dfb452

View File

@ -381,7 +381,7 @@
((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)) \
|| (defined(__GNUC__) && defined(_GLIBCXX_USE_C99)) \
|| (defined(_LIBCPP_VERSION) && !defined(_MSC_VER)) \
|| (EIGEN_COMP_MSVC >= 1900))
|| (EIGEN_COMP_MSVC >= 1900) || defined(__SYCL_DEVICE_ONLY__))
#define EIGEN_HAS_C99_MATH 1
#else
#define EIGEN_HAS_C99_MATH 0