aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-02-12 16:36:42 +0000
committerChristian Grothoff <christian@grothoff.org>2014-02-12 16:36:42 +0000
commit3de91d17fd2edbe0d131bdee60876b05dd3ffb71 (patch)
treef49c528b78eb279d02c795f1886d9af3ff44ac24 /src
parentda3b07ecb8177ca97658d7f656c8a7b61d6853c0 (diff)
downloadlibmicrohttpd-3de91d17fd2edbe0d131bdee60876b05dd3ffb71.tar.gz
libmicrohttpd-3de91d17fd2edbe0d131bdee60876b05dd3ffb71.zip
From: Karlson2k <k2k@narod.ru>
Date: Wed, 12 Feb 2014 14:19:34 +0400 Subject: [PATCH] Fix _MHD_EXTERN if "platform.h" is included in external file
Diffstat (limited to 'src')
-rw-r--r--src/include/platform.h7
-rw-r--r--src/microhttpd/Makefile.am3
-rw-r--r--src/microspdy/Makefile.am4
3 files changed, 14 insertions, 0 deletions
diff --git a/src/include/platform.h b/src/include/platform.h
index f8f75f0d..6433a2bf 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -36,6 +36,13 @@
36 36
37#include "MHD_config.h" 37#include "MHD_config.h"
38 38
39#ifndef BUILDING_MHD_LIB
40#ifdef _MHD_EXTERN
41#undef _MHD_EXTERN
42#endif /* _MHD_EXTERN */
43#define _MHD_EXTERN extern
44#endif /* BUILDING_MHD_LIB */
45
39#define _XOPEN_SOURCE_EXTENDED 1 46#define _XOPEN_SOURCE_EXTENDED 1
40#if OS390 47#if OS390
41#define _OPEN_THREADS 48#define _OPEN_THREADS
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am
index 61d2109d..02153a06 100644
--- a/src/microhttpd/Makefile.am
+++ b/src/microhttpd/Makefile.am
@@ -20,6 +20,9 @@ libmicrohttpd_la_SOURCES = \
20 internal.c internal.h \ 20 internal.c internal.h \
21 memorypool.c memorypool.h \ 21 memorypool.c memorypool.h \
22 response.c response.h 22 response.c response.h
23libmicrohttpd_la_CPPFLAGS = \
24 $(AM_CPPFLAGS) \
25 -DBUILDING_MHD_LIB=1
23libmicrohttpd_la_LDFLAGS = \ 26libmicrohttpd_la_LDFLAGS = \
24 $(MHD_LIB_LDFLAGS) \ 27 $(MHD_LIB_LDFLAGS) \
25 -version-info @LIB_VERSION_CURRENT@:@LIB_VERSION_REVISION@:@LIB_VERSION_AGE@ 28 -version-info @LIB_VERSION_CURRENT@:@LIB_VERSION_REVISION@:@LIB_VERSION_AGE@
diff --git a/src/microspdy/Makefile.am b/src/microspdy/Makefile.am
index 3a343ddc..52929ee2 100644
--- a/src/microspdy/Makefile.am
+++ b/src/microspdy/Makefile.am
@@ -29,6 +29,10 @@ libmicrospdy_la_SOURCES = \
29libmicrospdy_la_LDFLAGS = \ 29libmicrospdy_la_LDFLAGS = \
30 $(SPDY_LIB_LDFLAGS) 30 $(SPDY_LIB_LDFLAGS)
31 31
32libmicrospdy_la_CPPFLAGS = \
33 $(AM_CPPFLAGS) \
34 -DBUILDING_MHD_LIB=1
35
32libmicrospdy_la_CFLAGS = -Wextra \ 36libmicrospdy_la_CFLAGS = -Wextra \
33 $(SPDY_LIB_CFLAGS) 37 $(SPDY_LIB_CFLAGS)
34 38