commit f9844b9cfabc08ea12fbc8ef4cc6a1895c3e3bad parent 3d0a870adbb77f5fa4d29d9bb3342495c05cb8b5 Author: d.levin256@gmail.com <d.levin256@gmail.com> Date: Mon, 26 Sep 2016 09:39:24 +0300 CoMeta: Implement __declspec(empty_bases) Diffstat:
M | include/kfr/cident.h | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/include/kfr/cident.h b/include/kfr/cident.h @@ -259,6 +259,13 @@ extern char* gets(char* __s); #endif +#if defined _MSC_VER && _MSC_VER >= 1900 && defined(__clang__) && \ + (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 9)) +#define CMT_EMPTY_BASES __declspec(empty_bases) +#else +#define CMT_EMPTY_BASES +#endif + #define CMT_INLINE_STATIC CMT_INLINE static #define CMT_EXTERN_C extern "C"