diff options
author | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-02 06:03:04 +0000 |
---|---|---|
committer | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-02 06:03:04 +0000 |
commit | 06312a17a939ba64f394cc5ad14fcf50e1633968 (patch) | |
tree | abe64484a424be1bc7998704e6b2b69e19f9e456 /tests | |
parent | a3a680e41a970f81098826b3498793c0a29d9c46 (diff) | |
download | ATCD-06312a17a939ba64f394cc5ad14fcf50e1633968.tar.gz |
Defined RUN_MAIN to care of the WIN32 case.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/DLL_Test.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/DLL_Test.cpp b/tests/DLL_Test.cpp index 5222199b47b..d76a8140489 100644 --- a/tests/DLL_Test.cpp +++ b/tests/DLL_Test.cpp @@ -88,8 +88,14 @@ Hello *get_hello (void) typedef Hello *(*TC) (void); -#if defined (ACE_WIN32) +// Protection against this test being run individually. +#if defined (ACE_WIN32) +#define RUN_MAIN #elif defined (ACE_HAS_SVR4_DYNAMIC_LINKING) +#define RUN_MAIN +#endif + +#if defined RUN_MAIN int main (int argc, char *argv[]) { @@ -124,7 +130,7 @@ main (int argc, char *argv[]) ACE_END_TEST; return 0; } -#endif /* ACE_WIN32 || ACE_HAS_SVR4_DYNAMIC_LINKING */ +#endif /* RUN_MAIN */ #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class auto_ptr <Hello>; |