diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2004-12-06 16:46:43 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2004-12-06 16:46:43 +0000 |
commit | 772b577f9e51fbdb29cbb34e44fde1dee7ea32a9 (patch) | |
tree | 860249cee1e6962d3c23fc83f0803609e394b2cd | |
parent | df7feb8968ba8fa8022371fece72e2cc7b4e141a (diff) | |
download | ATCD-772b577f9e51fbdb29cbb34e44fde1dee7ea32a9.tar.gz |
ChangeLogTag: Mon Dec 6 10:46:02 2004 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | examples/APG/Threads/Guards.cpp | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index a2ccb379646..05e6afc1479 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Dec 6 10:46:02 2004 Chad Elliott <elliott_c@ociweb.com> + + * examples/APG/Threads/Guards.cpp: + + Put #if guards around the body to avoid build problems when + threads are disabled. + Mon Dec 6 06:53:43 2004 Chad Elliott <elliott_c@ociweb.com> * apps/soreduce/SO_Group.cpp: diff --git a/examples/APG/Threads/Guards.cpp b/examples/APG/Threads/Guards.cpp index ef2baaaed42..7ef23e1e4da 100644 --- a/examples/APG/Threads/Guards.cpp +++ b/examples/APG/Threads/Guards.cpp @@ -1,4 +1,6 @@ // $Id$ +#include "ace/config-lite.h" +#if defined (ACE_HAS_THREADS) #include "ace/OS_main.h" #include "ace/OS_Memory.h" @@ -79,3 +81,15 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) rep.update_device (42); return 0; } + +#else +#include "ace/OS_main.h" +#include "ace/OS_NS_stdio.h" + +int ACE_TMAIN (int, ACE_TCHAR *[]) +{ + ACE_OS::puts (ACE_TEXT ("This example requires threads.")); + return 0; +} + +#endif /* ACE_HAS_THREADS */ |