diff options
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/md5.h | 2 | ||||
-rw-r--r-- | src/microhttpd/memorypool.h | 2 | ||||
-rw-r--r-- | src/microhttpd/mhd_sockets.h | 2 | ||||
-rw-r--r-- | src/microhttpd/mhd_str.h | 2 | ||||
-rw-r--r-- | src/microhttpd/sha1.h | 4 | ||||
-rw-r--r-- | src/microhttpd/sha256.h | 4 | ||||
-rw-r--r-- | src/microhttpd/tsearch.c | 9 |
7 files changed, 20 insertions, 5 deletions
diff --git a/src/microhttpd/md5.h b/src/microhttpd/md5.h index 6c2a33f5..14cee305 100644 --- a/src/microhttpd/md5.h +++ b/src/microhttpd/md5.h | |||
@@ -20,7 +20,9 @@ | |||
20 | 20 | ||
21 | #include "mhd_options.h" | 21 | #include "mhd_options.h" |
22 | #include <stdint.h> | 22 | #include <stdint.h> |
23 | #ifdef HAVE_STDDEF_H | ||
23 | #include <stddef.h> | 24 | #include <stddef.h> |
25 | #endif /* HAVE_STDDEF_H */ | ||
24 | 26 | ||
25 | #define MD5_BLOCK_SIZE 64 | 27 | #define MD5_BLOCK_SIZE 64 |
26 | #define MD5_DIGEST_SIZE 16 | 28 | #define MD5_DIGEST_SIZE 16 |
diff --git a/src/microhttpd/memorypool.h b/src/microhttpd/memorypool.h index 11355a87..955fea4d 100644 --- a/src/microhttpd/memorypool.h +++ b/src/microhttpd/memorypool.h | |||
@@ -31,7 +31,9 @@ | |||
31 | #define MEMORYPOOL_H | 31 | #define MEMORYPOOL_H |
32 | 32 | ||
33 | #include "mhd_options.h" | 33 | #include "mhd_options.h" |
34 | #ifdef HAVE_STDDEF_H | ||
34 | #include <stddef.h> | 35 | #include <stddef.h> |
36 | #endif /* HAVE_STDDEF_H */ | ||
35 | #ifdef HAVE_STDBOOL_H | 37 | #ifdef HAVE_STDBOOL_H |
36 | #include <stdbool.h> | 38 | #include <stdbool.h> |
37 | #endif | 39 | #endif |
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h index 18f831a9..c8c1df2e 100644 --- a/src/microhttpd/mhd_sockets.h +++ b/src/microhttpd/mhd_sockets.h | |||
@@ -115,7 +115,9 @@ | |||
115 | # include <poll.h> | 115 | # include <poll.h> |
116 | #endif | 116 | #endif |
117 | 117 | ||
118 | #ifdef HAVE_STDDEF_H | ||
118 | #include <stddef.h> | 119 | #include <stddef.h> |
120 | #endif /* HAVE_STDDEF_H */ | ||
119 | #if defined(_MSC_FULL_VER) && ! defined (_SSIZE_T_DEFINED) | 121 | #if defined(_MSC_FULL_VER) && ! defined (_SSIZE_T_DEFINED) |
120 | # include <stdint.h> | 122 | # include <stdint.h> |
121 | # define _SSIZE_T_DEFINED | 123 | # define _SSIZE_T_DEFINED |
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h index b21ae256..a03dc49f 100644 --- a/src/microhttpd/mhd_str.h +++ b/src/microhttpd/mhd_str.h | |||
@@ -28,7 +28,9 @@ | |||
28 | 28 | ||
29 | #include "mhd_options.h" | 29 | #include "mhd_options.h" |
30 | #include <stdint.h> | 30 | #include <stdint.h> |
31 | #ifdef HAVE_STDDEF_H | ||
31 | #include <stddef.h> | 32 | #include <stddef.h> |
33 | #endif /* HAVE_STDDEF_H */ | ||
32 | #include <sys/types.h> | 34 | #include <sys/types.h> |
33 | #ifdef HAVE_STDBOOL_H | 35 | #ifdef HAVE_STDBOOL_H |
34 | #include <stdbool.h> | 36 | #include <stdbool.h> |
diff --git a/src/microhttpd/sha1.h b/src/microhttpd/sha1.h index 3464f268..851a4429 100644 --- a/src/microhttpd/sha1.h +++ b/src/microhttpd/sha1.h | |||
@@ -28,7 +28,9 @@ | |||
28 | 28 | ||
29 | #include "mhd_options.h" | 29 | #include "mhd_options.h" |
30 | #include <stdint.h> | 30 | #include <stdint.h> |
31 | #include <stddef.h> /* for size_t */ | 31 | #ifdef HAVE_STDDEF_H |
32 | #include <stddef.h> /* for size_t */ | ||
33 | #endif /* HAVE_STDDEF_H */ | ||
32 | 34 | ||
33 | /** | 35 | /** |
34 | * SHA-1 digest is kept internally as 5 32-bit words. | 36 | * SHA-1 digest is kept internally as 5 32-bit words. |
diff --git a/src/microhttpd/sha256.h b/src/microhttpd/sha256.h index 3b866af2..cac3cb28 100644 --- a/src/microhttpd/sha256.h +++ b/src/microhttpd/sha256.h | |||
@@ -28,7 +28,9 @@ | |||
28 | 28 | ||
29 | #include "mhd_options.h" | 29 | #include "mhd_options.h" |
30 | #include <stdint.h> | 30 | #include <stdint.h> |
31 | #include <stddef.h> | 31 | #ifdef HAVE_STDDEF_H |
32 | #include <stddef.h> /* for size_t */ | ||
33 | #endif /* HAVE_STDDEF_H */ | ||
32 | 34 | ||
33 | 35 | ||
34 | /** | 36 | /** |
diff --git a/src/microhttpd/tsearch.c b/src/microhttpd/tsearch.c index 971ec276..0a65ce94 100644 --- a/src/microhttpd/tsearch.c +++ b/src/microhttpd/tsearch.c | |||
@@ -10,9 +10,12 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "tsearch.h" | 12 | #include "tsearch.h" |
13 | #ifdef HAVE_STDLIB_H | 13 | #include "mhd_options.h" |
14 | #include <stdlib.h> | 14 | #ifdef HAVE_STDDEF_H |
15 | #endif /* HAVE_STDLIB_H */ | 15 | #include <stddef.h> |
16 | #else /* ! HAVE_STDDEF_H */ | ||
17 | #define NULL ((void*)0) | ||
18 | #endif /* ! HAVE_STDDEF_H */ | ||
16 | 19 | ||
17 | 20 | ||
18 | typedef struct node | 21 | typedef struct node |