[vlc-commits] Win32: some compilers fail to define stat correctly

Rémi Denis-Courmont git at videolan.org
Wed Feb 1 18:31:13 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb  1 19:30:48 2012 +0200| [0acd892b3308e23d640343d2cc3022957eaf4fda] | committer: Rémi Denis-Courmont

Win32: some compilers fail to define stat correctly

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

 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 01b0c3c..498eed1 100644
--- a/include/vlc_fs.h
+++ b/include/vlc_fs.h
@@ -65,6 +65,9 @@ static inline void vlc_rewinddir( DIR *dir )
 # define rewinddir vlc_rewinddir
 
 # include <sys/stat.h>
+# ifndef stat
+#  define stat _stati64
+# endif
 #endif
 
 struct stat;



More information about the vlc-commits mailing list