summaryrefslogtreecommitdiff
path: root/examples/Threads
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-03 06:23:42 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-03 06:23:42 +0000
commite85a5a82dc29f29b31baefa561263965d1d505c1 (patch)
tree3f956dcd3b129a10271445ae69f9f0b545ca3e25 /examples/Threads
parentd4a779434b4c0f5374539a1683ac3517135f93cf (diff)
downloadATCD-e85a5a82dc29f29b31baefa561263965d1d505c1.tar.gz
*** empty log message ***
Diffstat (limited to 'examples/Threads')
-rw-r--r--examples/Threads/task_three.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/examples/Threads/task_three.cpp b/examples/Threads/task_three.cpp
index 89db19c8276..4ca4668023d 100644
--- a/examples/Threads/task_three.cpp
+++ b/examples/Threads/task_three.cpp
@@ -16,9 +16,21 @@
#include "ace/Service_Config.h"
#include "ace/Task.h"
#include "ace/stdcpp.h"
+
+// Make sure we have fstream
#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)
-# include <fstream.h>
-# include <iostream.h>
+# if defined (ACE_HAS_STANDARD_CPP_LIBRARY) && (ACE_HAS_STANDARD_CPP_LIBRARY != 0)
+# include /**/ <fstream>
+
+# if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
+ (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
+ using std::ofstream;
+ using std::ios;
+# endif /* ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB */
+
+# else /* ACE_HAS_STANDARD_CPP_LIBRARY */
+# include /**/ <fstream.h>
+# endif /* ACE_HAS_STANDARD_CPP_LIBRARY */
#endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */
#if defined (ACE_HAS_THREADS)