msvcrt: define stat in wchar.h
Felix Nawothnig
felix.nawothnig at t-online.de
Wed Mar 24 11:54:27 CST 2004
When <wchar.h> is included before <sys/stat.h> stat remains
undefined - MSVCRT_STAT_DEFINED is set although wchar.h just
defines _stat and _stati64...
ChangeLog:
- Define stat in msvcrt/wchar.h
Index: include/msvcrt/wchar.h
===================================================================
RCS file: /home/wine/wine/include/msvcrt/wchar.h,v
retrieving revision 1.6
diff -u -u -r1.6 wchar.h
--- include/msvcrt/wchar.h 16 Mar 2004 19:17:11 -0000 1.6
+++ include/msvcrt/wchar.h 24 Mar 2004 17:30:47 -0000
@@ -167,6 +167,20 @@
MSVCRT(time_t) st_ctime;
};
+struct MSVCRT(stat) {
+ MSVCRT(_dev_t) st_dev;
+ MSVCRT(_ino_t) st_ino;
+ unsigned short st_mode;
+ short st_nlink;
+ short st_uid;
+ short st_gid;
+ MSVCRT(_dev_t) st_rdev;
+ MSVCRT(_off_t) st_size;
+ MSVCRT(time_t) st_atime;
+ MSVCRT(time_t) st_mtime;
+ MSVCRT(time_t) st_ctime;
+};
+
struct MSVCRT(_stati64) {
MSVCRT(_dev_t) st_dev;
MSVCRT(_ino_t) st_ino;
More information about the wine-patches
mailing list