summary refs log tree commit diff stats
path: root/ext/enchant-wdk/src
diff options
context:
space:
mode:
Diffstat (limited to 'ext/enchant-wdk/src')
-rw-r--r--ext/enchant-wdk/src/config.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/ext/enchant-wdk/src/config.h b/ext/enchant-wdk/src/config.h
index 9b569554..d91c69c6 100644
--- a/ext/enchant-wdk/src/config.h
+++ b/ext/enchant-wdk/src/config.h
@@ -1,13 +1,15 @@
-/*
- * Hand tailored config.h for windows.
- */
+#include <sys/types.h>
 
-/* define ssize_t to int if <sys/types.h> doesn't define.*/
-typedef int ssize_t;
-/* #undef ssize_t */
-
-#if defined(_MSC_VER)
-#pragma warning(disable: 4996) /* The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name. */
+#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
 
 #define ENCHANT_VERSION_STRING "1.6.0"
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195