From 195e30e8aa1479bd10bb50de5bd34a69f0a09c9f Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 30 Jan 2007 07:47:19 +0000 Subject: K. Piche * gcc visiblity changes Also modified _alpm_versioncmp -> alpm_versioncmp (public function) as per K. Piche's suggestions --- lib/libalpm/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libalpm/util.h') diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 098c15a4..4de9f5d8 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -76,6 +76,10 @@ char* strsep(char** str, const char* delims); char* mkdtemp(char *template); #endif +/* check exported library symbols with: nm -C -D */ +#define SYMEXPORT __attribute__((visibility("default"))) +#define SYMHIDDEN __attribute__((visibility("hidden"))) + #endif /* _ALPM_UTIL_H */ /* vim: set ts=2 sw=2 noet: */ -- cgit v1.2.3-54-g00ecf