summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2010-10-06 14:29:45 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2010-10-06 14:29:45 +0200
commit11a9adb19fbfbf265f37edba893a810ea50959a1 (patch)
treeb9ce968f3a50254604ca5a38f699d4e3bc5f12bc /src/fe-gtk
parentb0e8ed68bae10f813e0f2b74a7c8da8fcb9f6f4f (diff)
be consistent about ssize_t
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/typedef.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fe-gtk/typedef.h b/src/fe-gtk/typedef.h
new file mode 100644
index 00000000..b20612ea
--- /dev/null
+++ b/src/fe-gtk/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