Compare commits

...

14 Commits
main ... v1.8.x

Author SHA1 Message Date
Gennadiy Civil
dea0216d0c
Merge pull request #2083 from hugolm84/v1.8.x
Add missing typedefs for WINCE800 (Windows Embedded Compact 2013)
2019-01-29 23:37:58 -05:00
Gennadiy Civil
aafc594a43 Merge pull request #2086 from hugolm84:fix-dynamic/static-runtime-link
PiperOrigin-RevId: 231286700
2019-01-29 15:00:26 +01:00
Gennadiy Civil
4fe76c4d6e
Merge pull request #2085 from LukeCz/patch-2
Fix for: failed build on centos6 master #1587
2019-01-28 12:01:12 -05:00
Lukasz Czajczyk
049a0d74b0
Fix for: failed build on centos6 master #1587
The issue still exists in 1.8.1 and NOT in master branch. It was introduced to 1.8.1 only by #1512.
This code
GTEST_COMPILE_ASSERT_(
!IsHashTable<GTEST_REMOVE_REFERENCE_AND_CONST_(LhsContainer)>::value,
use_UnorderedPointwise_with_hash_tables);

Creates 2nd variable use_UnorderedPointwise_with_hash_tables.
2019-01-27 09:06:54 -06:00
Gennadiy Civil
987e7f346a Update WORKSPACE to make bazel work again 2019-01-25 21:06:10 +01:00
Gennadiy Civil
be8475fdf7
Update WORKSPACE to make bazel work again 2019-01-25 11:54:00 -05:00
Hugo Lindström
aea0d17e85 Merge branch 'fix-compile-on-wec2013' into v1.8.x 2019-01-25 14:23:53 +01:00
Hugo Lindström
d2b89946f8 Add missing typedefs for WINCE800 (Windows Embedded Compact 2013). 2019-01-25 13:59:18 +01:00
Gennadiy Civil
542e057c6c
Merge pull request #1858 from SoapGentoo/v1.8.x
Use correct minor version for 1.8 branch
2018-10-04 15:07:24 -04:00
David Seifert
b8c4997b87
Use correct minor version for 1.8 branch
Fixes #1816
2018-09-26 08:52:11 +02:00
Gennadiy Civil
30d325023c Merge branch 'master' into v1.8.x 2018-09-13 10:42:46 -04:00
Gennadiy Civil
792b475b9b
Merge pull request #1817 from DavidSchuldenfrei/1.8.x/bugFix/CompileVS2013
Fix Compile error, and warning in Visaul Studio 2013
2018-09-13 10:36:51 -04:00
David Schuldenfrei
e1d41f3f9f Gennadiy's comment. Reverts to previous code if not using Visual Studio 2013 2018-09-12 10:43:50 +03:00
David Schuldenfrei
a2a15f2cef Fix Compile error, and warning in Visaul Studio 2013 2018-09-08 21:32:25 +03:00
7 changed files with 29 additions and 6 deletions

View File

@ -5,7 +5,7 @@ if (POLICY CMP0048)
endif (POLICY CMP0048)
project(googletest-distribution)
set(GOOGLETEST_VERSION 1.9.0)
set(GOOGLETEST_VERSION 1.8.2)
enable_testing()

View File

@ -1,5 +1,7 @@
workspace(name = "com_google_googletest")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Abseil
http_archive(
name = "com_google_absl",

View File

@ -1,5 +1,5 @@
AC_INIT([Google C++ Mocking and Testing Frameworks],
[1.9.0],
[1.8.2],
[googlemock@googlegroups.com],
[googletest])

View File

@ -56,11 +56,17 @@
# include <initializer_list> // NOLINT -- must be after gtest.h
#endif
#if _MSC_VER >= 1900
GTEST_DISABLE_MSC_WARNINGS_PUSH_(
4251 5046 /* class A needs to have dll-interface to be used by clients of
class B */
/* Symbol involving type with internal linkage not defined */)
#else //Pragma 5046 doesn't exist in version of MSC prior to 1900
GTEST_DISABLE_MSC_WARNINGS_PUSH_(
4251 /* class A needs to have dll-interface to be used by clients of
class B */
/* Symbol involving type with internal linkage not defined */)
#endif
namespace testing {
// To implement a matcher Foo for type T, define:
@ -3027,7 +3033,7 @@ class PointwiseMatcher {
operator Matcher<LhsContainer>() const {
GTEST_COMPILE_ASSERT_(
!IsHashTable<GTEST_REMOVE_REFERENCE_AND_CONST_(LhsContainer)>::value,
use_UnorderedPointwise_with_hash_tables);
use_UnorderedPointwise_with_hash_tables_);
return MakeMatcher(new Impl<LhsContainer>(tuple_matcher_, rhs_));
}

View File

@ -22,6 +22,8 @@ macro(fix_default_compiler_settings_)
# This replacement code is taken from sample in the CMake Wiki at
# https://gitlab.kitware.com/cmake/community/wikis/FAQ#dynamic-replace.
foreach (flag_var
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
if (NOT BUILD_SHARED_LIBS AND NOT gtest_force_shared_crt)

View File

@ -983,7 +983,11 @@ struct TuplePolicy {
template <size_t I>
static typename AddReference<const typename ::std::tr1::tuple_element<
#if defined(_MSC_VER) && _MSC_VER < 1900
I, Tuple>::type>::type
#else
static_cast<int>(I), Tuple>::type>::type
#endif
get(const Tuple& tuple) {
return ::std::tr1::get<I>(tuple);
}

View File

@ -271,7 +271,14 @@
#ifndef _WIN32_WCE
# include <sys/types.h>
# include <sys/stat.h>
#endif // !_WIN32_WCE
#elif _WIN32_WCE >= 0x800 // Windows Embedded Compact 2013
// Forward declare instead of including <windows.h> / <windef.h> / <winnt.h>
typedef wchar_t WCHAR;
typedef WCHAR *PWCHAR, *LPWCH, *PWCH;
typedef const WCHAR *LPCWCH, *PCWCH;
typedef __readableTo(sentinel(0)) const WCHAR *LPCWSTR, *PCWSTR;
typedef const WCHAR *LPCWCHAR, *PCWCHAR;
#endif
#if defined __APPLE__
# include <AvailabilityMacros.h>
@ -430,6 +437,8 @@
// MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two
// separate (equivalent) structs, instead of using typedef
typedef struct _CRITICAL_SECTION GTEST_CRITICAL_SECTION;
#elif _WIN32_WCE >= 0x800
typedef struct CRITICAL_SECTION GTEST_CRITICAL_SECTION;
#else
// Assume CRITICAL_SECTION is a typedef of _RTL_CRITICAL_SECTION.
// This assumption is verified by
@ -2468,7 +2477,7 @@ inline char* StrDup(const char* src) { return _strdup(src); }
# endif // __BORLANDC__
# if GTEST_OS_WINDOWS_MOBILE
inline int FileNo(FILE* file) { return reinterpret_cast<int>(_fileno(file)); }
inline int FileNo(FILE* file) { return static_cast<int>(_fileno(file)); }
// Stat(), RmDir(), and IsDir() are not needed on Windows CE at this
// time and thus not defined there.
# else