summary refs log tree commit diff stats
path: root/src/common/typedef.h
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-30 22:13:40 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-10-30 22:13:40 +0100
commitea0d3059f44c1edc3fd762c5b921e43e535db290 (patch)
tree9dbef07bb3b527a5be024030f1a9ba71dd566869 /src/common/typedef.h
parentcb0f6c8c91b564e541688b3f0f57d8456295dc1f (diff)
Eliminate even more warnings and bump warning level to 3
Shouldn't need to go any higher, level 4+ gives insane warnings
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