diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-05-31 12:11:57 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-05-31 12:11:57 +0300 |
commit | 9f0107bb14f3eb0e6e7f6e5841bd7043d2c4e1e4 (patch) | |
tree | bbea9634cad731c795e26a12b8b0e4e0c620b710 /source | |
parent | e3dfe29110fd85ea9f20259a502e40133829067e (diff) |
Fix compilation previous commit
Diffstat (limited to 'source')
-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__)) && \ |