diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-02-24 16:33:10 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-02-24 16:34:40 +0300 |
commit | 728fd9a78cb19a7d4357bfd06ff63bbfa2cd6511 (patch) | |
tree | 18f451b265bfe98c3285f37130c0b2695dda841f | |
parent | 90d96de0a84631169f45bcb9aea0775708a2e4a6 (diff) |
Cycles: Fix compilation warning with CUDA on OSX
-rw-r--r-- | intern/cycles/util/util_static_assert.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/util/util_static_assert.h b/intern/cycles/util/util_static_assert.h index 033d85e8ec6..e90049254de 100644 --- a/intern/cycles/util/util_static_assert.h +++ b/intern/cycles/util/util_static_assert.h @@ -43,7 +43,9 @@ template <> class StaticAssertFailure<true> {}; # endif /* __COUNTER__ */ # endif /* C++11 or MSVC2015 */ #else /* __KERNEL_GPU__ */ -# define static_assert(statement, message) +# ifndef static_assert +# define static_assert(statement, message) +# endif #endif /* __KERNEL_GPU__ */ /* TODO(sergey): For until C++11 is a bare minimum for us, |