summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_netdb.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_NS_netdb.inl')
-rw-r--r--ACE/ace/OS_NS_netdb.inl6
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/ace/OS_NS_netdb.inl b/ACE/ace/OS_NS_netdb.inl
index 433f8cfec3f..5f4e4c258e9 100644
--- a/ACE/ace/OS_NS_netdb.inl
+++ b/ACE/ace/OS_NS_netdb.inl
@@ -785,10 +785,10 @@ ACE_OS::gai_strerror (int errcode)
default:
return ACE_TEXT ("Unknown error");
}
-#elif !defined ACE_WIN32
- return ACE_TEXT_CHAR_TO_TCHAR (::gai_strerror (errcode));
+#elif defined ACE_WIN32
+ return ACE_TEXT_gai_strerror (errcode);
#else
- return ::gai_strerror (errcode);
+ return ACE_TEXT_CHAR_TO_TCHAR (::gai_strerror (errcode));
#endif
}