aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/microhttpd/tsearch.c4
-rw-r--r--src/microhttpd/tsearch.h11
2 files changed, 14 insertions, 1 deletions
diff --git a/src/microhttpd/tsearch.c b/src/microhttpd/tsearch.c
index 2ab9a467..8889f32d 100644
--- a/src/microhttpd/tsearch.c
+++ b/src/microhttpd/tsearch.c
@@ -11,9 +11,11 @@
11 * Totally public domain. 11 * Totally public domain.
12 */ 12 */
13 13
14#ifndef _MSC_FULL_VER
14#include <sys/cdefs.h> 15#include <sys/cdefs.h>
16#endif //! _MSC_FULL_VER
15#define _SEARCH_PRIVATE 17#define _SEARCH_PRIVATE
16#include <tsearch.h> 18#include "tsearch.h"
17#include <stdlib.h> 19#include <stdlib.h>
18 20
19/* find or insert datum into search tree */ 21/* find or insert datum into search tree */
diff --git a/src/microhttpd/tsearch.h b/src/microhttpd/tsearch.h
index 824f9a2d..ec9c92de 100644
--- a/src/microhttpd/tsearch.h
+++ b/src/microhttpd/tsearch.h
@@ -9,7 +9,18 @@
9#ifndef _SEARCH_H_ 9#ifndef _SEARCH_H_
10#define _SEARCH_H_ 10#define _SEARCH_H_
11 11
12#ifndef _MSC_FULL_VER
12#include <sys/cdefs.h> 13#include <sys/cdefs.h>
14#endif /* _MSC_FULL_VER */
15#if !defined(__BEGIN_DECLS) || !defined(__END_DECLS)
16#if defined(__cplusplus)
17#define __BEGIN_DECLS extern "C" {
18#define __END_DECLS };
19#else /* !__cplusplus */
20#define __BEGIN_DECLS
21#define __END_DECLS
22#endif /* !__cplusplus */
23#endif /* !__BEGIN_DECLS || !__END_DECLS */
13#include <sys/types.h> 24#include <sys/types.h>
14 25
15typedef enum { 26typedef enum {