X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=googlemock%2Fsrc%2Fgmock_main.cc;h=18c500f6639d211d7e1c6de9c7c9ed6f9053214c;hb=548497ee798bf6e0a300e2d9848109ea1265a56b;hp=98611b935350d88c8921f2cc9bd785193e78ac6b;hpb=ea17aef41dec775b644330ec50fa99e945f6b308;p=platform%2Fupstream%2Fgtest.git diff --git a/googlemock/src/gmock_main.cc b/googlemock/src/gmock_main.cc index 98611b9..18c500f 100644 --- a/googlemock/src/gmock_main.cc +++ b/googlemock/src/gmock_main.cc @@ -32,7 +32,10 @@ #include "gmock/gmock.h" #include "gtest/gtest.h" -#ifdef ARDUINO +#if GTEST_OS_ESP8266 || GTEST_OS_ESP32 +#if GTEST_OS_ESP8266 +extern "C" { +#endif void setup() { // Since Google Mock depends on Google Test, InitGoogleMock() is // also responsible for initializing Google Test. Therefore there's @@ -40,6 +43,10 @@ void setup() { testing::InitGoogleMock(); } void loop() { RUN_ALL_TESTS(); } +#if GTEST_OS_ESP8266 +} +#endif + #else // MS C++ compiler/linker has a bug on Windows (not on Windows CE), which