summaryrefslogtreecommitdiffstats
path: root/googletest/src/gtest_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'googletest/src/gtest_main.cc')
-rw-r--r--googletest/src/gtest_main.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/googletest/src/gtest_main.cc b/googletest/src/gtest_main.cc
index 63b2cfd..46b27c3 100644
--- a/googletest/src/gtest_main.cc
+++ b/googletest/src/gtest_main.cc
@@ -27,7 +27,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include <iostream>
+#include <cstdio>
#include "gtest/gtest.h"
#if GTEST_OS_ESP8266 || GTEST_OS_ESP32
@@ -45,14 +45,9 @@ void loop() { RUN_ALL_TESTS(); }
#endif
#else
-#if __MSC_VER
-# include <tchar.h> // NOLINT
-GTEST_API_ int _tmain(int argc, TCHAR** argv) {
-#else
-GTEST_API_ int main(int argc, char** argv) {
-#endif // __MSC_VER
- std::cout << "Running main() from " << __FILE__ << '\n';
+GTEST_API_ int main(int argc, char **argv) {
+ printf("Running main() from %s\n", __FILE__);
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}