diff options
author | Ray Molenkamp <github@lazydodo.com> | 2019-06-09 03:10:48 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2019-06-09 03:10:48 +0300 |
commit | 8452673a0189b66e79508cf3b6a0d856aee62366 (patch) | |
tree | 34e7c5e5927a08aa2b2b227a81a30f3a9ad849e7 /source/blender/blenlib/BLI_assert.h | |
parent | 81b68f7279cd1eb2d4e215520784c0e68367d395 (diff) |
Fix: Build error with clang on windows.
clang does not seem support the static_assert with
message overload.
Diffstat (limited to 'source/blender/blenlib/BLI_assert.h')
-rw-r--r-- | source/blender/blenlib/BLI_assert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_assert.h b/source/blender/blenlib/BLI_assert.h index 7fb91656edb..b9cb32a310e 100644 --- a/source/blender/blenlib/BLI_assert.h +++ b/source/blender/blenlib/BLI_assert.h @@ -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); |