summaryrefslogtreecommitdiff
path: root/ace/OS_NS_stdio.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_NS_stdio.inl')
-rw-r--r--ace/OS_NS_stdio.inl6
1 files changed, 4 insertions, 2 deletions
diff --git a/ace/OS_NS_stdio.inl b/ace/OS_NS_stdio.inl
index 2c208212091..bde987d0b90 100644
--- a/ace/OS_NS_stdio.inl
+++ b/ace/OS_NS_stdio.inl
@@ -648,8 +648,10 @@ ACE_OS::fdopen (ACE_HANDLE handle, const ACE_TCHAR *mode)
if (crt_handle != -1)
{
-# if defined(__BORLANDC__) /* VSB */
- file = ::_fdopen (crt_handle, const_cast<char *> (mode));
+# if defined(__BORLANDC__) && !defined (ACE_USES_WCHAR)
+ file = ::_fdopen (crt_handle, const_cast<ACE_TCHAR *> (mode));
+# elif defined (__BORLANDC__) && defined (ACE_USES_WCHAR)
+ file = ::_wfdopen (crt_handle, const_cast<ACE_TCHAR *> (mode));
# elif defined (ACE_USES_WCHAR)
file = ::_wfdopen (crt_handle, mode);
# else