diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-12-08 22:07:49 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-12-08 22:07:49 +0000 |
commit | f9165af824b8b17874d968f3e57fad576570eb37 (patch) | |
tree | 923fca319913deedf33f4f1b95dc25736f288493 /tests/TSS_Test.cpp | |
parent | ce166cd8c8fff5eb5a7ba8ea3bbeb7cf5a788979 (diff) | |
download | ATCD-f9165af824b8b17874d968f3e57fad576570eb37.tar.gz |
foo
Diffstat (limited to 'tests/TSS_Test.cpp')
-rw-r--r-- | tests/TSS_Test.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/TSS_Test.cpp b/tests/TSS_Test.cpp index 5efd91cf7ce..0642f84e2ba 100644 --- a/tests/TSS_Test.cpp +++ b/tests/TSS_Test.cpp @@ -22,10 +22,10 @@ #include "ace/Service_Config.h" #include "ace/Synch.h" - #include "test_config.h" -#if defined (ACE_HAS_THREADS) +#if defined (ACE_HAS_THREADS) +#if !defined (ACE_TEMPLATES_REQUIRE_PRAGMA) // AIX is evil static const int ITERATIONS = 100; @@ -193,10 +193,11 @@ handler (int signum) template class ACE_TSS<Errno>; #endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ +#endif /* !ACE_TEMPLATES_REQUIRE_PRAGMA */ #endif /* ACE_HAS_THREADS */ int -main (int, char *argv[]) +main (int, char *[]) { ACE_START_TEST ("TSS_Test"); @@ -213,6 +214,9 @@ main (int, char *argv[]) ACE_OS::perror ("ACE_Thread_Manager::spawn_n"); ACE_Service_Config::thr_mgr ()->wait (); +#elif defined (ACE_TEMPLATES_REQUIRE_PRAGMA) + ACE_ERROR ((LM_ERROR, + "This platform has an evil template instantiation mechanism...\n")); #else ACE_ERROR ((LM_ERROR, "threads are not supported on this platform\n")); |