diff options
author | Peter Levine <plevine457@gmail.com> | 2019-06-04 05:07:18 (GMT) |
---|---|---|
committer | Peter Levine <plevine457@gmail.com> | 2019-06-04 05:07:18 (GMT) |
commit | 711fccf8317b4fb7adc21c00fc1e20823c5d875f (patch) | |
tree | 8974d8aca69bec8ed16b3b10650e95c89f91b038 /googlemock/include/gmock/internal/gmock-internal-utils.h | |
parent | 8ffb7e5c88b20a297a2e786c480556467496463b (diff) | |
download | googletest-711fccf8317b4fb7adc21c00fc1e20823c5d875f.zip googletest-711fccf8317b4fb7adc21c00fc1e20823c5d875f.tar.gz googletest-711fccf8317b4fb7adc21c00fc1e20823c5d875f.tar.bz2 |
Don't allow signed/unsigned wchar_t in gcc 9 and laterrefs/pull/2270/head
Diffstat (limited to 'googlemock/include/gmock/internal/gmock-internal-utils.h')
-rw-r--r-- | googlemock/include/gmock/internal/gmock-internal-utils.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h index 093b465..01e96cf 100644 --- a/googlemock/include/gmock/internal/gmock-internal-utils.h +++ b/googlemock/include/gmock/internal/gmock-internal-utils.h @@ -115,8 +115,11 @@ inline Element* GetRawPointer(Element* p) { return p; } // // To gcc, // wchar_t == signed wchar_t != unsigned wchar_t == unsigned int +// +// gcc-9 appears to treat signed/unsigned wchar_t as ill-formed +// regardless of the signage of its underlying type. #ifdef __GNUC__ -#if !defined(__WCHAR_UNSIGNED__) +#if !defined(__WCHAR_UNSIGNED__) && (__GNUC__ < 9) // signed/unsigned wchar_t are valid types. # define GMOCK_HAS_SIGNED_WCHAR_T_ 1 #endif |