Skip to content

Commit

Permalink
fix uchar.h for Clang
Browse files Browse the repository at this point in the history
Clang defines itself as GCC 4.2.1 and triggers check for GCC lower than
4.4.0.\
This patch adds additional !defined(__clang__) check

(cherry picked from commit dd9c402)
  • Loading branch information
mati865 authored and jon-y committed Oct 17, 2016
1 parent 2d3a9b6 commit 1a9621b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mingw-w64-headers/crt/uchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/* Remember that g++ >= 4.4 defines these types only in c++0x mode */
#if !(defined(__cplusplus) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || \
!defined(__GNUC__) || \
(__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))
(!defined(__clang__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)))
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
#endif
Expand Down

0 comments on commit 1a9621b

Please sign in to comment.