aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/notmuch-private.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-11-01 22:01:15 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-11-01 22:35:48 -0700
commitc81cecf620d506653a1ead83858b8b3fc240abb5 (patch)
treef69fd387af5c9c28637f6f4f2fa0253df0be9571 /lib/notmuch-private.h
parent67c3bc9db48c9e12d648df4792c706cae723676c (diff)
lib: Add GCC visibility(hidden) pragmas to private header files.
This prevents any of the private functions from being leaked out through the library interface (at least when compiling with a recent-enough gcc to support the visibility pragma).
Diffstat (limited to 'lib/notmuch-private.h')
-rw-r--r--lib/notmuch-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
index 5a0cf925..5b32f84a 100644
--- a/lib/notmuch-private.h
+++ b/lib/notmuch-private.h
@@ -48,6 +48,8 @@ NOTMUCH_BEGIN_DECLS
#include "xutil.h"
+#pragma GCC visibility push(hidden)
+
#ifdef DEBUG
# define DEBUG_DATABASE_SANITY 1
# define DEBUG_QUERY 1
@@ -442,6 +444,8 @@ _notmuch_tags_add_tag (notmuch_tags_t *tags, const char *tag);
void
_notmuch_tags_prepare_iterator (notmuch_tags_t *tags);
+#pragma GCC visibility pop
+
NOTMUCH_END_DECLS
#endif