diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-11-15 15:06:53 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-11-15 15:06:53 +0000 |
commit | dd82af84ed67f439444e75ea1d032c082e15db51 (patch) | |
tree | ba069fd043c20624e5723efec4952e376a9c77c4 /Xw32defs.h | |
parent | 618956f1f783a8c330aab8eac425937f0b8e50e1 (diff) |
Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 Added
mingw (Win32) port
Diffstat (limited to 'Xw32defs.h')
-rw-r--r-- | Xw32defs.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3,6 +3,13 @@ #ifndef _XW32DEFS_H #define _XW32DEFS_H +#ifdef __GNUC__ /* mingw is more close to unix than msvc */ +#if !defined(__daddr_t_defined) +typedef char *caddr_t; +#endif +#define lstat stat + +#else typedef char *caddr_t; #define access _access @@ -70,5 +77,5 @@ typedef char *caddr_t; #define X_OK 1 #define W_OK 2 #define R_OK 4 - +#endif /* __GNUC__ */ #endif |