diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-06-01 18:30:44 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-06-01 18:30:44 -0400 |
commit | ca92955ec9b25323adf423d55043df117a8b6d1a (patch) | |
tree | 015a16b81d4f1b9ccc9a4bf83a855e103c6e7978 /pocl | |
parent | 96d8431201a1f84e2eb43fd08e8a8d291ca18a99 (diff) | |
download | vecmathlib-ca92955ec9b25323adf423d55043df117a8b6d1a.zip vecmathlib-ca92955ec9b25323adf423d55043df117a8b6d1a.tar.gz |
pocl: Without cl_khr_fp64, ensure then M_PI is not defined twice
Diffstat (limited to 'pocl')
-rw-r--r-- | pocl/pocl-compat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pocl/pocl-compat.h b/pocl/pocl-compat.h index 7d73256..af6c31a 100644 --- a/pocl/pocl-compat.h +++ b/pocl/pocl-compat.h @@ -17,7 +17,8 @@ #include <cstring> #ifndef cl_khr_fp64 -#define M_PI M_PI_F +# undef M_PI +# define M_PI M_PI_F #endif // Define vector types |