Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2019-05-31 12:11:57 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-05-31 12:11:57 +0300
commit9f0107bb14f3eb0e6e7f6e5841bd7043d2c4e1e4 (patch)
treebbea9634cad731c795e26a12b8b0e4e0c620b710 /source/blender/blenlib/BLI_assert.h
parente3dfe29110fd85ea9f20259a502e40133829067e (diff)
Fix compilation previous commit
Diffstat (limited to 'source/blender/blenlib/BLI_assert.h')
-rw-r--r--source/blender/blenlib/BLI_assert.h5
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__)) && \