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.inl8
1 files changed, 4 insertions, 4 deletions
diff --git a/ace/OS_NS_stdio.inl b/ace/OS_NS_stdio.inl
index bb3fa454a4d..ada51707bea 100644
--- a/ace/OS_NS_stdio.inl
+++ b/ace/OS_NS_stdio.inl
@@ -635,11 +635,11 @@ ACE_OS::fdopen (ACE_HANDLE handle, const ACE_TCHAR *mode)
FILE *file = 0;
-# if defined (ACE_WIN64)
- int crt_handle = ::_open_osfhandle (intptr_t (handle), 0);
-# else
+#if (defined(__BORLANDC__) && __BORLANDC__ < 0x0570)
int crt_handle = ::_open_osfhandle (long (handle), 0);
-# endif /* ACE_WIN64 */
+#else
+ int crt_handle = ::_open_osfhandle (intptr_t (handle), 0);
+#endif
if (crt_handle != -1)
{