From dc8dcaf61db1bacdcede578dbbffdce716e62d17 Mon Sep 17 00:00:00 2001 From: "taemin.yeom" Date: Tue, 11 May 2021 16:06:00 +0900 Subject: [PATCH] Add conditional compile directive to avoid build error Change-Id: I51d1082222a7fa0ed5bb755ee75856aae1c25d63 Signed-off-by: taemin.yeom --- haltest/haltest.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/haltest/haltest.h b/haltest/haltest.h index 53856e7..f78f328 100644 --- a/haltest/haltest.h +++ b/haltest/haltest.h @@ -19,6 +19,7 @@ #include #include +#if (GTEST_VERSION_MAJOR < 1 || (GTEST_VERSION_MAJOR == 1 && GTEST_VERSION_MINOR < 10)) // hack gtest internal for print message namespace testing { @@ -34,6 +35,7 @@ namespace testing extern void ColoredPrintf(GTestColor color, const char* fmt, ...); } } +#endif #define SKIP_MESSAGE(fmt, args...) \ do { \ -- 2.7.4