summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgpetit <gaspard.petit@eidosmontreal.com>2017-08-14 16:42:23 (GMT)
committergpetit <gaspard.petit@eidosmontreal.com>2017-08-14 16:42:23 (GMT)
commitc113a7151d282cd32d246062783c83ccc65feb28 (patch)
tree47f2325f8d8115ce9158f1dbef389bdfbcfe7fb0
parentaa148eb2b7f70ede0eb10de34b6254826bfb34f4 (diff)
downloadgoogletest-c113a7151d282cd32d246062783c83ccc65feb28.zip
googletest-c113a7151d282cd32d246062783c83ccc65feb28.tar.gz
googletest-c113a7151d282cd32d246062783c83ccc65feb28.tar.bz2
Added support for WINAPI_PARTITION_TV_TITLE which is defined on XboxOne
-rw-r--r--googletest/include/gtest/internal/gtest-port-arch.h3
-rw-r--r--googletest/src/gtest.cc2
2 files changed, 4 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-port-arch.h b/googletest/include/gtest/internal/gtest-port-arch.h
index 74ab949..e1c7473 100644
--- a/googletest/include/gtest/internal/gtest-port-arch.h
+++ b/googletest/include/gtest/internal/gtest-port-arch.h
@@ -54,6 +54,9 @@
# define GTEST_OS_WINDOWS_PHONE 1
# elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
# define GTEST_OS_WINDOWS_RT 1
+# elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_TV_TITLE)
+# define GTEST_OS_WINDOWS_PHONE 1
+# define GTEST_OS_WINDOWS_TV_TITLE 1
# else
// WINAPI_FAMILY defined but no known partition matched.
// Default to desktop.
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index d882ab2..0104156 100644
--- a/googletest/src/gtest.cc
+++ b/googletest/src/gtest.cc
@@ -1663,7 +1663,7 @@ namespace {
AssertionResult HRESULTFailureHelper(const char* expr,
const char* expected,
long hr) { // NOLINT
-# if GTEST_OS_WINDOWS_MOBILE
+# if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_WINDOWS_TV_TITLE
// Windows CE doesn't support FormatMessage.
const char error_text[] = "";