Fixed uchar.h for clang3.6
The NDK self-test issue64679-prctl failed to build because by default clang3.6 builds in C11 mode, but the ifdef in the file 'uchar.h' hid the required char16_t and char32_t declarations based on the GCC version, which is declared as 4 by clang. The ifdef is changed so that it is based on C version rather than a compiler version. This way it is compatible with gcc 4, gcc 5 and clang which are actually the only used toolchains. See also: b.android.com/177609 Change-Id: I78c4bdc681c6f8a31b92dbe8ffe35e84ef2eda36 Signed-off-by: Egor Kochetov <egor.kochetov@intel.com>
This commit is contained in:
parent
6589febec2
commit
a05bee544a
@ -34,7 +34,7 @@
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5 && !defined(__cplusplus)
|
||||
#if __STDC_VERSION__ >= 201112L && !defined(__cplusplus)
|
||||
typedef __CHAR16_TYPE__ char16_t;
|
||||
typedef __CHAR32_TYPE__ char32_t;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user