diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-18 05:23:42 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-18 05:23:42 +0000 |
commit | 112a7a9bb71c631690e5560fdfeb0adf79a83164 (patch) | |
tree | 4e620f21ae12e5077d0d8bbc28c1bd62c6260078 /ACE/ace/OS_NS_stdio.cpp | |
parent | cd04889def8904057be84af96a11d40a5914fdcd (diff) | |
download | ATCD-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.cpp | 12 |
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) { |