diff options
-rw-r--r-- | source/blender/blenlib/BLI_assert.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_assert.h b/source/blender/blenlib/BLI_assert.h index 366ed86c022..b517fcba0dc 100644 --- a/source/blender/blenlib/BLI_assert.h +++ b/source/blender/blenlib/BLI_assert.h @@ -84,6 +84,11 @@ extern "C" { # define BLI_assert(a) ((void)0) #endif +// A Clang feature extension to determine compiler features. +#ifndef __has_feature +# define __has_feature(x) 0 +#endif + /* C++ can't use _Static_assert, expects static_assert() but c++0x only, * Coverity also errors out. */ #if (!defined(__cplusplus)) && (!defined(__COVERITY__)) && \ |