From 19fed720ff4a0acf7effc5e1b11b2cedbde009dc Mon Sep 17 00:00:00 2001 From: dhust Date: Thu, 16 Jun 2016 17:31:51 -0300 Subject: _DEFAULT_SOURCE flag added, and clang check for IsTriviallyCopyable macro fix clang ver check for 4.0 + using clang macro __has_feature __GLIBCXX__ check added fix __has_feature --- Source/Core/Common/ChunkFile.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/Core/Common/ChunkFile.h b/Source/Core/Common/ChunkFile.h index 0f177e6761..67066dd206 100644 --- a/Source/Core/Common/ChunkFile.h +++ b/Source/Core/Common/ChunkFile.h @@ -32,7 +32,12 @@ #include "Common/Logging/Log.h" // ewww -#if _LIBCPP_VERSION || __GNUC__ >= 5 + +#ifndef __has_feature + #define __has_feature(x) (0) +#endif + +#if (__has_feature(is_trivially_copyable) && (defined(_LIBCPP_VERSION) || defined(__GLIBCXX__))) || (defined(__GNUC__) && __GNUC__ >= 5) #define IsTriviallyCopyable(T) std::is_trivially_copyable::type>::value #elif __GNUC__ #define IsTriviallyCopyable(T) std::has_trivial_copy_constructor::value -- cgit v1.2.3