diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-08-12 08:32:26 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-08-12 08:38:25 -0400 |
commit | 809584283a3ce5b0250656faefb23a821782adbe (patch) | |
tree | bdf8398f0873fd8067b94daac3df43fa392c1b90 /include | |
parent | f2a5f57a20ffa007abc1fa24df1f76e18b74a425 (diff) | |
download | acl-809584283a3ce5b0250656faefb23a821782adbe.tar.gz |
mark libmisc funcs as hidden so they are not exported
Diffstat (limited to 'include')
-rw-r--r-- | include/misc.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/misc.h b/include/misc.h index a4fa70e..f5c0dae 100644 --- a/include/misc.h +++ b/include/misc.h @@ -18,14 +18,23 @@ #ifndef __MISC_H #define __MISC_H +#include "config.h" + #include <stdio.h> -extern int high_water_alloc(void **buf, size_t *bufsize, size_t newsize); +/* Mark library internal functions as hidden */ +#if defined(HAVE_VISIBILITY_ATTRIBUTE) +# define hidden __attribute__((visibility("hidden"))) +#else +# define hidden /* hidden */ +#endif + +hidden int high_water_alloc(void **buf, size_t *bufsize, size_t newsize); -extern const char *quote(const char *str, const char *quote_chars); -extern char *unquote(char *str); +hidden const char *quote(const char *str, const char *quote_chars); +hidden char *unquote(char *str); -extern char *next_line(FILE *file); +hidden char *next_line(FILE *file); #ifdef ENABLE_NLS # include <libintl.h> |