aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-10-06 14:00:03 +0000
committerYang Tse <yangsita@gmail.com>2009-10-06 14:00:03 +0000
commite593715d721dd725f2bafbf9ef51a6a3a9f36a5b (patch)
tree9a832b041e804b12d09aade6ff5640a641448327
parent1209f2c014be055552ffc8576cc4469c7f316ce9 (diff)
Fix comment
-rw-r--r--lib/config-win32.h1
-rw-r--r--src/config-win32.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h
index 1318d2978..dd81ee1f7 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -313,6 +313,7 @@
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
+/* Define ssize_t if it is not an available 'typedefed' type */
#ifndef _SSIZE_T_DEFINED
#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__) || \
defined(__MINGW32__)
diff --git a/src/config-win32.h b/src/config-win32.h
index eb0185856..8311fe755 100644
--- a/src/config-win32.h
+++ b/src/config-win32.h
@@ -180,6 +180,8 @@
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
+/* Define ssize_t if it is not an available 'typedefed' type */
+#ifndef _SSIZE_T_DEFINED
#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__) || \
defined(__MINGW32__)
#elif defined(_WIN64)
@@ -187,6 +189,8 @@
#else
#define ssize_t int
#endif
+#define _SSIZE_T_DEFINED
+#endif
/* ---------------------------------------------------------------- */
/* STRUCT RELATED */