From a37924df0ba33174f4372b2bc0a7092979fadb30 Mon Sep 17 00:00:00 2001 From: GeorgeRG Date: Tue, 22 Oct 2024 08:37:57 +0000 Subject: [PATCH] Fix sytax bug when compiling cpp project with no main --- include/acutest.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/acutest.h b/include/acutest.h index 5f9cb19..5c6ffc4 100644 --- a/include/acutest.h +++ b/include/acutest.h @@ -1980,9 +1980,6 @@ main(int argc, char** argv) return exit_code; } - -#endif /* #ifndef TEST_NO_MAIN */ - #ifdef _MSC_VER #pragma warning(pop) #endif @@ -1991,4 +1988,6 @@ main(int argc, char** argv) } /* extern "C" */ #endif +#endif /* #ifndef TEST_NO_MAIN */ + #endif /* #ifndef ACUTEST_H */