summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_stdio.cpp
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2006-10-18 05:23:42 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2006-10-18 05:23:42 +0000
commit112a7a9bb71c631690e5560fdfeb0adf79a83164 (patch)
tree4e620f21ae12e5077d0d8bbc28c1bd62c6260078 /ACE/ace/OS_NS_stdio.cpp
parentcd04889def8904057be84af96a11d40a5914fdcd (diff)
downloadATCD-112a7a9bb71c631690e5560fdfeb0adf79a83164.tar.gz
ChangeLogTag:Tue Oct 18 06:02:28 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
Diffstat (limited to 'ACE/ace/OS_NS_stdio.cpp')
-rw-r--r--ACE/ace/OS_NS_stdio.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/ACE/ace/OS_NS_stdio.cpp b/ACE/ace/OS_NS_stdio.cpp
index 822e66cf4eb..bfcbad2d8e5 100644
--- a/ACE/ace/OS_NS_stdio.cpp
+++ b/ACE/ace/OS_NS_stdio.cpp
@@ -127,11 +127,7 @@ ACE_OS::fopen (const char *filename,
{
hmode &= _O_TEXT | _O_RDONLY | _O_APPEND;
-# if defined (ACE_LACKS_INTPTR_T)
- int fd = ::_open_osfhandle (long (handle), hmode);
-# else
- int fd = ::_open_osfhandle (intptr_t (handle), hmode);
-# endif
+ int const fd = ::_open_osfhandle (intptr_t (handle), hmode);
if (fd != -1)
{
@@ -175,11 +171,7 @@ ACE_OS::fopen (const wchar_t *filename,
{
hmode &= _O_TEXT | _O_RDONLY | _O_APPEND;
-# if defined (ACE_LACKS_INTPTR_T)
- int fd = ::_open_osfhandle (long (handle), hmode);
-# else
- int fd = ::_open_osfhandle (intptr_t (handle), hmode);
-# endif
+ int const fd = ::_open_osfhandle (intptr_t (handle), hmode);
if (fd != -1)
{