summaryrefslogtreecommitdiffstats
path: root/qtools/qfiledefs_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qfiledefs_p.h')
-rw-r--r--qtools/qfiledefs_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qtools/qfiledefs_p.h b/qtools/qfiledefs_p.h
index 5105c45..5a7cfe2 100644
--- a/qtools/qfiledefs_p.h
+++ b/qtools/qfiledefs_p.h
@@ -190,10 +190,17 @@
#else // all other systems
+#ifdef __MINGW32__
+# define STATBUF struct _stat
+# define STATBUF4TSTAT struct _stat
+# define STAT _stat
+# define FSTAT _fstat
+#else
# define STATBUF struct stat
# define STATBUF4TSTAT struct stat
# define STAT ::stat
# define FSTAT ::fstat
+#endif
# define STAT_REG S_IFREG
# define STAT_DIR S_IFDIR
# define STAT_MASK S_IFMT