Fix: Build error with clang on windows.

clang does not seem support the static_assert with
message overload.
This commit is contained in:
Ray molenkamp 2019-06-08 18:10:48 -06:00
parent 81b68f7279
commit 8452673a01
Notes: blender-bot 2023-02-14 11:28:43 +01:00
Referenced by issue #65565, Hair Particle system not behaving
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ extern "C" {
# define BLI_STATIC_ASSERT(a, msg) static_assert(a, msg);
#elif defined(_MSC_VER)
/* Visual Studio */
# if _MSC_VER > 1910
# if (_MSC_VER > 1910) && !defined(__clang__)
# define BLI_STATIC_ASSERT(a, msg) static_assert(a, msg);
# else
# define BLI_STATIC_ASSERT(a, msg) _STATIC_ASSERT(a);