aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index d5e08d82..17828202 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -60,14 +60,6 @@
60 * thread-safe (with the exception of #MHD_set_connection_value, 60 * thread-safe (with the exception of #MHD_set_connection_value,
61 * which must only be used in a particular context). 61 * which must only be used in a particular context).
62 * 62 *
63 * NEW: Before including "microhttpd.h" you should add the necessary
64 * includes to define the `uint64_t`, `size_t`, `fd_set`, `socklen_t`
65 * and `struct sockaddr` data types (which headers are needed may
66 * depend on your platform; for possible suggestions consult
67 * "platform.h" in the MHD distribution). If you have done so, you
68 * should also have a line with "#define MHD_PLATFORM_H" which will
69 * prevent this header from trying (and, depending on your platform,
70 * failing) to include the right headers.
71 * 63 *
72 * @defgroup event event-loop control 64 * @defgroup event event-loop control
73 * MHD API to start and stop the HTTP server and manage the event loop. 65 * MHD API to start and stop the HTTP server and manage the event loop.
@@ -100,11 +92,14 @@ extern "C"
100 hence works on any platform, we use "standard" includes here 92 hence works on any platform, we use "standard" includes here
101 to build out-of-the-box for beginning users on common systems. 93 to build out-of-the-box for beginning users on common systems.
102 94
103 Once you have a proper build system and go for more exotic 95 If generic headers don't work on your platform, include headers
104 platforms, you should define MHD_PLATFORM_H in some header that 96 which define 'va_list', 'size_t', 'ssize_t', 'intptr_t',
105 you always include *before* "microhttpd.h". Then the following 97 'uint16_t', 'uint32_t', 'uint64_t', 'off_t', 'struct sockaddr',
106 "standard" includes won't be used (which might be a good 98 'socklen_t', 'fd_set' and "#define MHD_PLATFORM_H" before
107 idea, especially on platforms where they do not exist). */ 99 including "microhttpd.h". Then the following "standard"
100 includes won't be used (which might be a good idea, especially
101 on platforms where they do not exist).
102 */
108#ifndef MHD_PLATFORM_H 103#ifndef MHD_PLATFORM_H
109#include <stdarg.h> 104#include <stdarg.h>
110#include <stdint.h> 105#include <stdint.h>