aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/memorypool.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/microhttpd/memorypool.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/microhttpd/memorypool.c')
-rw-r--r--src/microhttpd/memorypool.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
index 06ef06b9..57962c17 100644
--- a/src/microhttpd/memorypool.c
+++ b/src/microhttpd/memorypool.c
@@ -83,7 +83,6 @@ struct MemoryPool
83 * @param max maximum size of the pool 83 * @param max maximum size of the pool
84 * @return NULL on error 84 * @return NULL on error
85 */ 85 */
86HIDDEN_SYMBOL
87struct MemoryPool * 86struct MemoryPool *
88MHD_pool_create (size_t max) 87MHD_pool_create (size_t max)
89{ 88{
@@ -127,7 +126,7 @@ MHD_pool_create (size_t max)
127 * 126 *
128 * @param pool memory pool to destroy 127 * @param pool memory pool to destroy
129 */ 128 */
130void HIDDEN_SYMBOL 129void
131MHD_pool_destroy (struct MemoryPool *pool) 130MHD_pool_destroy (struct MemoryPool *pool)
132{ 131{
133 if (pool == NULL) 132 if (pool == NULL)
@@ -151,7 +150,6 @@ MHD_pool_destroy (struct MemoryPool *pool)
151 * @return NULL if the pool cannot support size more 150 * @return NULL if the pool cannot support size more
152 * bytes 151 * bytes
153 */ 152 */
154HIDDEN_SYMBOL
155void * 153void *
156MHD_pool_allocate (struct MemoryPool *pool, 154MHD_pool_allocate (struct MemoryPool *pool,
157 size_t size, int from_end) 155 size_t size, int from_end)
@@ -195,7 +193,6 @@ MHD_pool_allocate (struct MemoryPool *pool,
195 * NULL if the pool cannot support @a new_size 193 * NULL if the pool cannot support @a new_size
196 * bytes (old continues to be valid for @a old_size) 194 * bytes (old continues to be valid for @a old_size)
197 */ 195 */
198HIDDEN_SYMBOL
199void * 196void *
200MHD_pool_reallocate (struct MemoryPool *pool, 197MHD_pool_reallocate (struct MemoryPool *pool,
201 void *old, 198 void *old,
@@ -250,7 +247,6 @@ MHD_pool_reallocate (struct MemoryPool *pool,
250 * @param size how many bytes need to be kept at this address 247 * @param size how many bytes need to be kept at this address
251 * @return addr new address of @a keep (if it had to change) 248 * @return addr new address of @a keep (if it had to change)
252 */ 249 */
253HIDDEN_SYMBOL
254void * 250void *
255MHD_pool_reset (struct MemoryPool *pool, 251MHD_pool_reset (struct MemoryPool *pool,
256 void *keep, 252 void *keep,