summaryrefslogtreecommitdiff
path: root/Xw32defs.h
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-11-15 15:06:53 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-11-15 15:06:53 +0000
commitdd82af84ed67f439444e75ea1d032c082e15db51 (patch)
treeba069fd043c20624e5723efec4952e376a9c77c4 /Xw32defs.h
parent618956f1f783a8c330aab8eac425937f0b8e50e1 (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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Xw32defs.h b/Xw32defs.h
index 6b661c4..07624fe 100644
--- a/Xw32defs.h
+++ b/Xw32defs.h
@@ -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