diff options
author | LRN <lrn1986@gmail.com> | 2014-01-27 06:59:02 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2014-01-27 06:59:02 +0000 |
commit | 0d8aeae6df35a54ec2e612eb944663880758b857 (patch) | |
tree | a6f275e91f3ebad21cfd733533ebf15dc891b12c /src/include/platform.h | |
parent | 34644b55bb6b4285b6341fbe9e375498c4e7cb41 (diff) | |
download | libmicrohttpd-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/include/platform.h')
-rw-r--r-- | src/include/platform.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/include/platform.h b/src/include/platform.h index bcf36ac6..f8f75f0d 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -111,14 +111,4 @@ | |||
111 | 111 | ||
112 | #include <plibc.h> | 112 | #include <plibc.h> |
113 | 113 | ||
114 | #define GCC_VERSION (__GNUC__ * 10000 \ | ||
115 | + __GNUC_MINOR__ * 100 \ | ||
116 | + __GNUC_PATCHLEVEL__) | ||
117 | #if GCC_VERSION > 40000 | ||
118 | #define HIDDEN_SYMBOL __attribute__ ((visibility ("hidden"))) | ||
119 | #else | ||
120 | #define HIDDEN_SYMBOL | ||
121 | #endif | ||
122 | |||
123 | |||
124 | #endif | 114 | #endif |