Add conditional compile directive to avoid build error 41/258141/3 accepted/tizen/unified/20210526.010327 submit/tizen/20210510.064912 submit/tizen/20210523.234938
authortaemin.yeom <taemin.yeom@samsung.com>
Tue, 11 May 2021 07:06:00 +0000 (16:06 +0900)
committertaemin.yeom <taemin.yeom@samsung.com>
Tue, 11 May 2021 07:47:35 +0000 (16:47 +0900)
Change-Id: I51d1082222a7fa0ed5bb755ee75856aae1c25d63
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
haltest/haltest.h

index 53856e77be285e76e7da0999b5ce2ed4ed43b097..f78f3284285e7c4afa8fd86ea07a2b91dca10ae3 100644 (file)
@@ -19,6 +19,7 @@
 #include <gtest/gtest.h>
 #include <string.h>
 
+#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 { \