[Bf-blender-cvs] [9f0107bb14f] master: Fix compilation previous commit
Jeroen Bakker
noreply at git.blender.org
Fri May 31 11:12:12 CEST 2019
Commit: 9f0107bb14f3eb0e6e7f6e5841bd7043d2c4e1e4
Author: Jeroen Bakker
Date: Fri May 31 11:11:57 2019 +0200
Branches: master
https://developer.blender.org/rB9f0107bb14f3eb0e6e7f6e5841bd7043d2c4e1e4
Fix compilation previous commit
===================================================================
M source/blender/blenlib/BLI_assert.h
===================================================================
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__)) && \
More information about the Bf-blender-cvs
mailing list