diff options
author | misterg <misterg@google.com> | 2018-10-08 14:42:22 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-10-08 14:51:12 (GMT) |
commit | 27c86f29417e53a622a2902baab2d1d82dafc5f9 (patch) | |
tree | 4c3ff28fc276e49c3b54f0befed7bd3721002549 /googletest | |
parent | fab35920ad7e709847a94175337b8674bea0f9ae (diff) | |
download | googletest-27c86f29417e53a622a2902baab2d1d82dafc5f9.zip googletest-27c86f29417e53a622a2902baab2d1d82dafc5f9.tar.gz googletest-27c86f29417e53a622a2902baab2d1d82dafc5f9.tar.bz2 |
always define define GTEST_LANG_CXX11 1
PiperOrigin-RevId: 216184859
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/include/gtest/internal/gtest-port.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index 899fa5b..ad56d07 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -343,18 +343,7 @@ GTEST_DISABLE_MSC_WARNINGS_POP_() #endif -#ifndef GTEST_LANG_CXX11 -// gcc and clang define __GXX_EXPERIMENTAL_CXX0X__ when -// -std={c,gnu}++{0x,11} is passed. The C++11 standard specifies a -// value for __cplusplus, and recent versions of clang, gcc, and -// probably other compilers set that too in C++11 mode. -# if __GXX_EXPERIMENTAL_CXX0X__ || __cplusplus >= 201103L || _MSC_VER >= 1900 -// Compiling in at least C++11 mode. -# define GTEST_LANG_CXX11 1 -# else -# define GTEST_LANG_CXX11 0 -# endif -#endif +#define GTEST_LANG_CXX11 1 // Distinct from C++11 language support, some environments don't provide // proper C++11 library support. Notably, it's possible to build in |