aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2014-12-22 19:41:39 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2014-12-22 19:41:39 +0000
commit7d18a1a3ed9ff9e23e2a2675bded14f188ed0873 (patch)
tree27b9b6202061c96a180b0903d6ea635ec91646e8
parent76311f9249f7313a5068c2cf73521a874fb2e654 (diff)
downloadlibmicrohttpd-7d18a1a3ed9ff9e23e2a2675bded14f188ed0873.tar.gz
libmicrohttpd-7d18a1a3ed9ff9e23e2a2675bded14f188ed0873.zip
platform.h: define ssize_t for MSVC compiler
-rw-r--r--src/include/platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/platform.h b/src/include/platform.h
index 4837f3db..e60abb44 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -148,6 +148,10 @@
148#define SHUT_RDWR SD_BOTH 148#define SHUT_RDWR SD_BOTH
149#endif 149#endif
150 150
151#if defined(_MSC_FULL_VER) && !defined (_SSIZE_T_DEFINED)
152#define _SSIZE_T_DEFINED
153typedef intptr_t ssize_t;
154#endif // !_SSIZE_T_DEFINED */
151#ifndef MHD_SOCKET_DEFINED 155#ifndef MHD_SOCKET_DEFINED
152/** 156/**
153 * MHD_socket is type for socket FDs 157 * MHD_socket is type for socket FDs