summary refs log tree commit diff stats
path: root/src/common/typedef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/typedef.h')
-rw-r--r--src/common/typedef.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/typedef.h b/src/common/typedef.h
index b20612ea..daeffcae 100644
--- a/src/common/typedef.h
+++ b/src/common/typedef.h
@@ -1,3 +1,8 @@
+#ifndef HEXCHAT_TYPEDEF_H
+#define HEXCHAT_TYPEDEF_H
+
+#ifdef WIN32
+
 #ifndef SSIZE_T_DEFINED
 #ifdef ssize_t
 #undef ssize_t
@@ -9,3 +14,12 @@ typedef _W64 int         ssize_t;
 #endif
 #define SSIZE_T_DEFINED
 #endif
+
+#ifndef fstat
+#define fstat _fstat
+#define stat _stat
+#endif
+
+#endif
+
+#endif