diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-30 00:33:43 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-30 00:33:43 +0000 |
commit | 2d27f44666189e87ff27436b35a0dd002a0cdfd7 (patch) | |
tree | dd496dde3c016a1db5d3882e1dc40c9af7e9aaf8 /examples/Threads/test_thread_specific.cpp | |
parent | 8460f65dd042d52eaaa80acfef7f288ab4ceb27a (diff) | |
download | ATCD-2d27f44666189e87ff27436b35a0dd002a0cdfd7.tar.gz |
Eon
Diffstat (limited to 'examples/Threads/test_thread_specific.cpp')
-rw-r--r-- | examples/Threads/test_thread_specific.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/examples/Threads/test_thread_specific.cpp b/examples/Threads/test_thread_specific.cpp index 41b70c8c012..f7a4f6dccf3 100644 --- a/examples/Threads/test_thread_specific.cpp +++ b/examples/Threads/test_thread_specific.cpp @@ -2,7 +2,8 @@ // $Id$ #include "ace/Synch.h" -#include "ace/Log_Msg.h" + +#if defined (ACE_HAS_THREADS) // Define a class that will be stored in thread-specific data. Note // that as far as this class is concerned it's just a regular C++ @@ -206,3 +207,13 @@ main (int argc, char *argv[]) #if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) template class ACE_TSS<Errno>; #endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ + +#else +int +main (void) +{ + ACE_ERROR_RETURN ((LM_ERROR, + "ACE doesn't support support threads on this platform (yet)\n"), + -1); +} +#endif /* ACE_HAS_THREADS */ |