gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 139/335: microhttpd2.h: updated and reduced the list of


From: gnunet
Subject: [libmicrohttpd] 139/335: microhttpd2.h: updated and reduced the list of required system types
Date: Sat, 27 Jul 2024 22:00:35 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.

commit 6c9771846dfcaf12513ebfc8f77795e5c2c403e4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Apr 8 16:20:19 2024 +0200

    microhttpd2.h: updated and reduced the list of required system types
---
 src/include/microhttpd2.h | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h
index 9386c58a..23286bcf 100644
--- a/src/include/microhttpd2.h
+++ b/src/include/microhttpd2.h
@@ -161,24 +161,18 @@ MHD_C_DECLRATIONS_START_HERE_
    to build out-of-the-box for beginning users on common systems.
 
    If generic headers don't work on your platform, include headers
-   which define 'va_list', 'size_t', 'ssize_t', 'intptr_t',
-   'uint16_t', 'uint32_t', 'uint64_t', 'off_t', 'struct sockaddr',
-   'socklen_t', 'fd_set' and "#define MHD_PLATFORM_H" before
-   including "microhttpd.h". Then the following "standard"
+   which define 'va_list', 'size_t', 'uint_fast16_t', 'uint_fat32_t',
+   'uint_fast64_t', 'struct sockaddr', and "#define MHD_PLATFORM_H"
+   before including "microhttpd.h".  Then the following "standard"
    includes won't be used (which might be a good idea, especially
    on platforms where they do not exist).
    */
-// TODO: review the list of includes, reduce it
 #ifndef MHD_PLATFORM_H
 #include <stdarg.h>
 #include <stdint.h>
 #include <sys/types.h>
 #if defined(_WIN32) && ! defined(__CYGWIN__)
 #include <ws2tcpip.h>
-#if defined(_MSC_FULL_VER) && ! defined(_SSIZE_T_DEFINED)
-#define _SSIZE_T_DEFINED
-typedef intptr_t ssize_t;
-#endif /* !_SSIZE_T_DEFINED */
 #else
 #include <unistd.h>
 #include <sys/time.h>

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]