Thank you. 2016-10-17 14:16 GMT+02:00 Martell Malone <[email protected]>:
> Jon_y beat me to it. :) > I had modified it to fit within a reasonable line character limit with this > adjustment. > > Author: mati865 <[email protected]> > Date: Mon Oct 17 12:08:24 2016 +0000 > > fix uchar.h for Clang > > 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 > > diff --git a/mingw-w64-headers/crt/uchar.h b/mingw-w64-headers/crt/uchar.h > index 475ad87..a2c65ab 100644 > --- a/mingw-w64-headers/crt/uchar.h > +++ b/mingw-w64-headers/crt/uchar.h > @@ -29,8 +29,8 @@ > > /* 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(__GNUC__) || (!defined(__clang__) && \ > + (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))) > typedef uint_least16_t char16_t; > typedef uint_least32_t char32_t; > #endif > Regardless it is in master now. > > > On Mon, Oct 17, 2016 at 4:24 AM, Mateusz <[email protected]> wrote: > > > Can some commit it? > > > > śr., 28 wrz 2016, 16:29 użytkownik JonY <[email protected]> > > napisał: > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA256 > > > > > > On 9/28/2016 18:02, Mateusz wrote: > > > > Looks attachment didn't work. Here is the patch: > > > > > > > >> From e98ec7a116256108831f035eb0a7f0f2fdf049e9 Mon Sep 17 00:00:00 > > > >> 2001 > > > > From: mati865 <[email protected]> Date: Wed, 28 Sep 2016 11:45:40 > > > > +0200 Subject: [PATCH] fix uchar.h for Clang > > > > > > > > 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 > > > > --- mingw-w64-headers/crt/uchar.h | 2 +- 1 file changed, 1 > > > > insertion(+), 1 deletion(-) > > > > > > > > diff --git a/mingw-w64-headers/crt/uchar.h > > > > b/mingw-w64-headers/crt/uchar.h index 475ad87..ab8a26d 100644 --- > > > > a/mingw-w64-headers/crt/uchar.h +++ > > > > b/mingw-w64-headers/crt/uchar.h @@ -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 > > > > -- 2.9.1 > > > > > > > > > > Patch looks OK. > > > > > > > > > -----BEGIN PGP SIGNATURE----- > > > > > > iF4EAREIAAYFAlfr01kACgkQk721PNTrx0D/oAD7BQAqa+mfswOGE5VF+tqOBGhA > > > fwdzqx9Ame+pT4PjC7sBAIUFQvSfIuffAkLVe6vUZVzzmae4JzzZ+CkyfUT/ZuTp > > > =j/Ue > > > -----END PGP SIGNATURE----- > > > > > > ------------------------------------------------------------ > > ------------------ > > > _______________________________________________ > > > Mingw-w64-public mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > _______________________________________________ > > Mingw-w64-public mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Mingw-w64-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
