From 6e723bfbe3d2adf145efda50120d651e829c0dd2 Mon Sep 17 00:00:00 2001 From: "kosak@google.com" Date: Mon, 27 Jul 2015 21:18:24 +0000 Subject: Inject the name of the Init function using a macro. git-svn-id: http://googletest.googlecode.com/svn/trunk@740 861a406c-534a-0410-8894-cb66d6ee9925 --- include/gtest/internal/gtest-port.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index 30997f3..f17cf92 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -290,6 +290,10 @@ # define GTEST_PROJECT_URL_ "http://code.google.com/p/googletest/" #endif // !defined(GTEST_DEV_EMAIL_) +#if !defined(GTEST_INIT_GOOGLE_TEST_NAME_) +# define GTEST_INIT_GOOGLE_TEST_NAME_ "testing::InitGoogleTest" +#endif // !defined(GTEST_INIT_GOOGLE_TEST_NAME_) + // Determines the version of gcc that is used to compile this. #ifdef __GNUC__ // 40302 means version 4.3.2. -- cgit v1.2.1