summaryrefslogtreecommitdiff
path: root/netsvcs
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 /netsvcs
parentd4a779434b4c0f5374539a1683ac3517135f93cf (diff)
downloadATCD-e85a5a82dc29f29b31baefa561263965d1d505c1.tar.gz
*** empty log message ***
Diffstat (limited to 'netsvcs')
-rw-r--r--netsvcs/lib/Logging_Strategy.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/netsvcs/lib/Logging_Strategy.cpp b/netsvcs/lib/Logging_Strategy.cpp
index a5e2e0c18c2..d8b11450159 100644
--- a/netsvcs/lib/Logging_Strategy.cpp
+++ b/netsvcs/lib/Logging_Strategy.cpp
@@ -4,11 +4,21 @@
#define ACE_BUILD_SVC_DLL
#include "ace/Get_Opt.h"
#include "Logging_Strategy.h"
-#if defined ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION
-# include <fstream.h>
-# include <iostream.h>
-#else
-# include "ace/stdcpp.h"
+
+// Make sure we have fstream
+#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)
+# 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 */
// Parse the string containing all the flags and set the flags accordingly