summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_sys_stat.inl
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2006-10-30 09:28:05 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2006-10-30 09:28:05 +0000
commitd72b95a446acf858ca9e17536dae004a09f40abf (patch)
treea7fd2e951bd799321386d6b74298f125f41c2393 /ACE/ace/OS_NS_sys_stat.inl
parent67c5d38418fa72ee23f8b76c619e406d7d27e6ce (diff)
downloadATCD-d72b95a446acf858ca9e17536dae004a09f40abf.tar.gz
ChangeLogTag:Mon Oct 30 09:24:42 UTC 2006 Ossama Othman <ossama_othman at symantec.com>
Diffstat (limited to 'ACE/ace/OS_NS_sys_stat.inl')
-rw-r--r--ACE/ace/OS_NS_sys_stat.inl26
1 files changed, 6 insertions, 20 deletions
diff --git a/ACE/ace/OS_NS_sys_stat.inl b/ACE/ace/OS_NS_sys_stat.inl
index 9cfabb260b9..321f2caf7ae 100644
--- a/ACE/ace/OS_NS_sys_stat.inl
+++ b/ACE/ace/OS_NS_sys_stat.inl
@@ -249,18 +249,8 @@ namespace ACE_OS
// Solaris for intel uses an macro for stat(), this macro is a
// wrapper for _xstat().
ACE_OSCALL_RETURN (::_xstat (_STAT_VER, file, stp), int, -1);
-#elif defined (ACE_WIN32)
-# if defined(__IBMCPP__) || defined (__MINGW32__)
- ACE_OSCALL_RETURN (::_stat (file, stp), int, -1);
-# elif defined (__BORLANDC__)
- ACE_OSCALL_RETURN (::_stati64 (file, stp), int, -1);
-# elif defined _MSC_VER && _MSC_VER >= 1300 && _MSC_VER < 1400 // vc71
- ACE_OSCALL_RETURN (::_stati64 (file, stp), int, -1);
-# else
- ACE_OSCALL_RETURN (::_stat64 (file, stp), int, -1);
-# endif /* __IBMCPP__ */
-#else /* ACE_HAS_NONCONST_STAT */
- ACE_OSCALL_RETURN (::stat (file, stp), int, -1);
+#else
+ ACE_OSCALL_RETURN (ACE_STAT_FUNC_NAME (file, stp), int, -1);
#endif /* ACE_HAS_NONCONST_STAT */
}
@@ -293,14 +283,10 @@ namespace ACE_OS
stp->st_mtime = ACE_Time_Value (fdata.ftLastWriteTime);
}
return 0;
-#elif defined (__BORLANDC__)
- ACE_OSCALL_RETURN (::_wstati64 (file, stp), int, -1);
-#elif defined (ACE_WIN32) && defined _MSC_VER && _MSC_VER >= 1300 && _MSC_VER < 1400 // vc71
- ACE_OSCALL_RETURN (::_wstati64 (file, stp), int, -1);
-#elif defined (__MINGW32__)
- ACE_OSCALL_RETURN (::_wstat (file, stp), int, -1);
-#elif defined (ACE_WIN32)
- ACE_OSCALL_RETURN (::_wstat64 (file, stp), int, -1);
+#elif defined (__BORLANDC__) \
+ || (defined (_MSC_VER) && _MSC_VER >= 1300) \
+ || defined (__MINGW32__)
+ ACE_OSCALL_RETURN (ACE_WSTAT_FUNC_NAME (file, stp), int, -1);
#else /* ACE_HAS_WINCE */
ACE_Wide_To_Ascii nfile (file);
return ACE_OS::stat (nfile.char_rep (), stp);