Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit dfb44c9

Browse files
t-bbourtemb
authored andcommitted
tango_config.h: Add clang detection (#442)
According to [1] clang 3.3 has full C++11 support and 3.4 full C++14 support. So by requiring version 4 or higher we are on the safe side. [1]: https://clang.llvm.org/cxx_status.html
1 parent e0d625d commit dfb44c9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cppapi/server/tango_config.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,23 @@
182182
#define HAS_MAP_AT
183183
#define HAS_ATTRIBUTE_SPECIFIERS
184184
#endif
185+
#if defined(__clang__)
186+
#if __clang_major__ > 3
187+
#define HAS_UNIQUE_PTR
188+
#define HAS_RVALUE
189+
#define HAS_LAMBDA_FUNC
190+
#define HAS_ISNAN_IN_STD
191+
#define HAS_NULLPTR
192+
#define HAS_RANGE_BASE_FOR
193+
#define INIT_LIST
194+
#define HAS_THREAD
195+
#define HAS_TYPE_TRAITS
196+
#define HAS_UNDERLYING
197+
#define HAS_VARIADIC_TEMPLATE
198+
#define HAS_MAP_AT
199+
#define HAS_ATTRIBUTE_SPECIFIERS
200+
#endif
201+
#endif
185202
#endif
186203
#else
187204
#ifdef WIN32_VC10

0 commit comments

Comments
 (0)