[vlc-commits] Win32: define fstat as well as stat

Naohiro KORIYAMA git at videolan.org
Thu Feb 2 02:59:52 CET 2012


vlc | branch: master | Naohiro KORIYAMA <nkoriyama at gmail.com> | Thu Feb  2 07:25:13 2012 +0900| [5b877e456bb1ddd4c3c869902d1f2428ffac8519] | committer: Rafaël Carré

Win32: define fstat as well as stat

Fix wrong result of stream_Size() on win32 build.

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5b877e456bb1ddd4c3c869902d1f2428ffac8519
---

 include/vlc_fs.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/vlc_fs.h b/include/vlc_fs.h
index d5b78e2..94b8515 100644
--- a/include/vlc_fs.h
+++ b/include/vlc_fs.h
@@ -69,6 +69,9 @@ static inline void vlc_rewinddir( DIR *dir )
 #  ifndef stat
 #   define stat _stati64
 #  endif
+#  ifndef fstat
+#   define fstat _fstati64
+#  endif
 # endif
 #endif
 



More information about the vlc-commits mailing list