mirror of
https://github.com/google/googletest.git
synced 2025-12-06 08:46:50 +08:00
Merge cd80ab87ae5fc4d466bd7a844fe67e697adb2b98 into 1b96fa13f549387b7549cc89e1a785cf143a1a50
This commit is contained in:
commit
f16909a10d
@ -61,7 +61,7 @@ void loop() { RUN_ALL_TESTS(); }
|
||||
|
||||
GTEST_API_ int _tmain(int argc, TCHAR** argv) {
|
||||
#else
|
||||
GTEST_API_ int main(int argc, char** argv) {
|
||||
extern "C" GTEST_API_ int main(int argc, char** argv) {
|
||||
#endif // GTEST_OS_WINDOWS_MOBILE
|
||||
std::cout << "Running main() from gmock_main.cc\n";
|
||||
// Since Google Mock depends on Google Test, InitGoogleMock() is
|
||||
|
||||
@ -58,7 +58,7 @@ GTEST_API_ int main() {
|
||||
#else
|
||||
// Normal platforms: program entry point is main, argc/argv are initialized.
|
||||
|
||||
GTEST_API_ int main(int argc, char **argv) {
|
||||
extern "C" GTEST_API_ int main(int argc, char **argv) {
|
||||
printf("Running main() from %s\n", __FILE__);
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user