[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 06/09: mhd_str.h: fixed compilation with MSVC
From: |
gnunet |
Subject: |
[libmicrohttpd] 06/09: mhd_str.h: fixed compilation with MSVC |
Date: |
Wed, 21 Jul 2021 22:25:25 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit eb731135bbdd83f1d1ca5733cb39f29731661562
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Jul 21 22:42:01 2021 +0300
mhd_str.h: fixed compilation with MSVC
---
src/microhttpd/mhd_str.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h
index b5bb95d1..cbc1030b 100644
--- a/src/microhttpd/mhd_str.h
+++ b/src/microhttpd/mhd_str.h
@@ -34,6 +34,11 @@
#include <stdbool.h>
#endif /* HAVE_STDBOOL_H */
+#if defined(_MSC_FULL_VER) && ! defined (_SSIZE_T_DEFINED)
+#define _SSIZE_T_DEFINED
+typedef intptr_t ssize_t;
+#endif /* !_SSIZE_T_DEFINED */
+
#ifdef MHD_FAVOR_SMALL_CODE
#include "mhd_limits.h"
#endif /* MHD_FAVOR_SMALL_CODE */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (ecf9dbb6 -> 237aebfa), gnunet, 2021/07/21
- [libmicrohttpd] 01/09: Restructured files in MSVC project, gnunet, 2021/07/21
- [libmicrohttpd] 05/09: mhd_align.h: added support for MSVC compiler, gnunet, 2021/07/21
- [libmicrohttpd] 06/09: mhd_str.h: fixed compilation with MSVC,
gnunet <=
- [libmicrohttpd] 04/09: mhd_align.h: fixed copy-paste error, gnunet, 2021/07/21
- [libmicrohttpd] 02/09: MSVC project: defaults to Vista+, gnunet, 2021/07/21
- [libmicrohttpd] 09/09: mhd_str: use smaller include, gnunet, 2021/07/21
- [libmicrohttpd] 03/09: MSVC projects: added missing header, gnunet, 2021/07/21
- [libmicrohttpd] 08/09: test_str_tokens_remove: shut spell checker, gnunet, 2021/07/21
- [libmicrohttpd] 07/09: test_str_tokens_remove: test corner cases, gnunet, 2021/07/21