1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef BOOST_NOWIDE_STAT_HPP_INCLUDED
- #define BOOST_NOWIDE_STAT_HPP_INCLUDED
- #include <boost/nowide/config.hpp>
- #include <sys/types.h>
- #include <sys/stat.h>
- #if defined(__MINGW32__) && defined(__MSVCRT_VERSION__) && __MSVCRT_VERSION__ < 0x0601
- struct __stat64;
- #endif
- namespace boost {
- namespace nowide {
- #if !defined(BOOST_WINDOWS) && !defined(BOOST_NOWIDE_DOXYGEN)
-
-
- typedef struct ::stat stat_t;
- typedef struct ::stat posix_stat_t;
- using ::stat;
- #else
-
-
-
- typedef struct ::__stat64 stat_t;
-
-
-
- typedef struct ::_stat posix_stat_t;
-
- namespace detail {
- BOOST_NOWIDE_DECL int stat(const char* path, posix_stat_t* buffer, size_t buffer_size);
- }
-
-
-
-
-
-
- BOOST_NOWIDE_DECL int stat(const char* path, stat_t* buffer);
-
-
-
-
-
- inline int stat(const char* path, posix_stat_t* buffer)
- {
- return detail::stat(path, buffer, sizeof(*buffer));
- }
- #endif
- }
- }
- #endif
|