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-21 04:41:59 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-21 04:41:59 +0200
commitdf33905ad18dafc26ad62bda12515890299b4bdc (patch)
tree5ddc8423eff96402099f2465a52ecad36136b918 /src/common/typedef.h
parent0ca97e210869dbf2db3df3fcbb3c6266cd198537 (diff)
Relocate typedef.h
Diffstat (limited to 'src/common/typedef.h')
-rw-r--r--src/common/typedef.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/typedef.h b/src/common/typedef.h
new file mode 100644
index 00000000..b20612ea
--- /dev/null
+++ b/src/common/typedef.h
@@ -0,0 +1,11 @@
+#ifndef SSIZE_T_DEFINED
+#ifdef ssize_t
+#undef ssize_t
+#endif
+#ifdef _WIN64
+typedef __int64          ssize_t;
+#else
+typedef _W64 int         ssize_t;
+#endif
+#define SSIZE_T_DEFINED
+#endif