mariadb: Update to version 10.6.4
[feed/packages.git] / net / lighttpd / patches / 020-decls.patch
1 From cf4dfbe15ef8ead3a7eda974af7d804d447f00db Mon Sep 17 00:00:00 2001
2 From: Glenn Strauss <gstrauss@gluelogic.com>
3 Date: Mon, 4 Oct 2021 09:51:22 -0400
4 Subject: [PATCH] [core] define __BEGIN_DECLS, __END_DECLS if needed
5
6 ---
7 src/first.h | 16 ++++++++++++++++
8 1 file changed, 16 insertions(+)
9
10 --- a/src/first.h
11 +++ b/src/first.h
12 @@ -39,6 +39,22 @@
13 #include <sys/types.h>
14 #include <stddef.h>
15
16 +#ifndef __BEGIN_DECLS
17 +#ifdef __cplusplus
18 +#define __BEGIN_DECLS extern "C" {
19 +#else
20 +#define __BEGIN_DECLS
21 +#endif
22 +#endif
23 +
24 +#ifndef __END_DECLS
25 +#ifdef __cplusplus
26 +#define __END_DECLS }
27 +#else
28 +#define __END_DECLS
29 +#endif
30 +#endif
31 +
32 #if defined HAVE_STDINT_H
33 # include <stdint.h>
34 #elif defined HAVE_INTTYPES_H