From: taemin.yeom Date: Tue, 11 May 2021 07:04:32 +0000 (+0900) Subject: Add conditional compile directive to avoid build error X-Git-Tag: submit/tizen/20210510.064912^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F258142%2F3;p=platform%2Fhal%2Fapi%2Fsensor.git Add conditional compile directive to avoid build error Change-Id: I4e6d3bda7bcea0af59793344b0787b9aa89114b0 Signed-off-by: taemin.yeom --- diff --git a/haltest/sensor-haltest.h b/haltest/sensor-haltest.h index 033fb75..3e030f1 100644 --- a/haltest/sensor-haltest.h +++ b/haltest/sensor-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 { \