diff options
Diffstat (limited to 'ace/OS_NS_unistd.inl')
-rw-r--r-- | ace/OS_NS_unistd.inl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ace/OS_NS_unistd.inl b/ace/OS_NS_unistd.inl index 820d28232ac..ecfbacda0fd 100644 --- a/ace/OS_NS_unistd.inl +++ b/ace/OS_NS_unistd.inl @@ -736,12 +736,11 @@ ACE_OS::isatty (ACE_HANDLE handle) ACE_UNUSED_ARG (handle); return 0; #else -# if defined (ACE_WIN64) - int fd = ::_open_osfhandle (intptr_t (handle), 0); -# else - int fd = ::_open_osfhandle (long (handle), 0); -# endif /* ACE_WIN64 */ - +# if (defined(__BORLANDC__) && __BORLANDC__ < 0x0570) + int fd = ::_open_osfhandle (long (handle), 0); +# else + int fd = ::_open_osfhandle (intptr_t (handle), 0); +#endif int status = ::_isatty (fd); ::_close (fd); return status; |