aboutsummaryrefslogtreecommitdiff
path: root/src/testspdy/common.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2014-01-27 06:59:02 +0000
committerLRN <lrn1986@gmail.com>2014-01-27 06:59:02 +0000
commit0d8aeae6df35a54ec2e612eb944663880758b857 (patch)
treea6f275e91f3ebad21cfd733533ebf15dc891b12c /src/testspdy/common.c
parent34644b55bb6b4285b6341fbe9e375498c4e7cb41 (diff)
downloadlibmicrohttpd-0d8aeae6df35a54ec2e612eb944663880758b857.tar.gz
libmicrohttpd-0d8aeae6df35a54ec2e612eb944663880758b857.zip
Add decl check for _stati64 (required for newer plibc)
Remove redundant -no-undefined (it's part of mandatory MHD_LIB_LDFLAGS now) Remove --export-all-symbols for W32 (visibility is used instead) Add -fvisibility=hidden configure check (shamelessly borrowed from GTK) Remove unused -export-symbols-regex check Define _MHD_EXTERN to "extern" if it's undefined (this is what clients get) Mark all public functions with _MHD_EXTERN Remove HIDDEN_SYMBOL definition Don't mark hidden functions with HIDDEN_SYMBOL (everything that is not explicitly public is hidden by default now) Change constructor macros a bit to apply _MHD_EXTERN to them cleanly Use HIDDEN_VISIBILITY_CFLAGS when compiling libraries Remove EXPORT.sym files, don't mention them in EXTRA_DIST, don't use them to define a list of exported functions Remove redundant -no-undefined, make sure only the one that gets into Makefiles directly remains, remove -Wl prefix from it
Diffstat (limited to 'src/testspdy/common.c')
-rw-r--r--src/testspdy/common.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/testspdy/common.c b/src/testspdy/common.c
index 65bcbcce..98c2d674 100644
--- a/src/testspdy/common.c
+++ b/src/testspdy/common.c
@@ -27,21 +27,19 @@
27#include <sys/time.h> 27#include <sys/time.h>
28 28
29#ifdef __GNUC__ 29#ifdef __GNUC__
30#define ATTRIBUTE_CONSTRUCTOR __attribute__ ((constructor)) 30#define FUNC_CONSTRUCTOR(f) static void __attribute__ ((constructor)) f
31#define ATTRIBUTE_DESTRUCTOR __attribute__ ((destructor)) 31#define FUNC_DESTRUCTOR(f) static void __attribute__ ((destructor)) f
32#else // !__GNUC__ 32#else // !__GNUC__
33#define ATTRIBUTE_CONSTRUCTOR 33#define FUNC_CONSTRUCTOR(f) _MHD_EXTERN void f
34#define ATTRIBUTE_DESTRUCTOR 34#define FUNC_DESTRUCTOR(f) _MHD_EXTERN void f
35#endif // __GNUC__ 35#endif // __GNUC__
36 36
37void ATTRIBUTE_CONSTRUCTOR 37FUNC_CONSTRUCTOR (constructor)()
38constructor()
39{ 38{
40 printf("\nTEST START -------------------------------------------------------\n"); 39 printf("\nTEST START -------------------------------------------------------\n");
41} 40}
42 41
43void ATTRIBUTE_DESTRUCTOR 42FUNC_DESTRUCTOR (destructor)()
44destructor()
45{ 43{
46 printf("------------------------------------------------------- TEST END\n"); 44 printf("------------------------------------------------------- TEST END\n");
47} 45}