summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_time.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_NS_time.inl')
-rw-r--r--ACE/ace/OS_NS_time.inl12
1 files changed, 5 insertions, 7 deletions
diff --git a/ACE/ace/OS_NS_time.inl b/ACE/ace/OS_NS_time.inl
index 2c11331ec57..0355fe03a8e 100644
--- a/ACE/ace/OS_NS_time.inl
+++ b/ACE/ace/OS_NS_time.inl
@@ -491,15 +491,13 @@ ACE_OS::timezone (void)
ACE_INLINE void
ACE_OS::tzset (void)
{
-#if !defined (ACE_LACKS_TZSET) && !defined (ACE_HAS_DINKUM_STL)
-# if defined (ACE_WIN32)
+#if defined (ACE_LACKS_TZSET)
+ errno = ENOTSUP;
+#elif defined (ACE_WIN32)
::_tzset (); // For Win32.
-# else
+#else
::tzset (); // For UNIX platforms.
-# endif /* ACE_WIN32 */
-# else
- errno = ENOTSUP;
-# endif /* !ACE_LACKS_TZSET */
+#endif /* ACE_LACKS_TZSET */
}
ACE_END_VERSIONED_NAMESPACE_DECL