From c81cecf620d506653a1ead83858b8b3fc240abb5 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 1 Nov 2010 22:01:15 -0700 Subject: 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). --- lib/database-private.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/database-private.h') diff --git a/lib/database-private.h b/lib/database-private.h index bd72f670..e42b8bb8 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -34,6 +34,8 @@ #include +#pragma GCC visibility push(hidden) + struct _notmuch_database { notmuch_bool_t exception_reported; @@ -65,4 +67,6 @@ notmuch_tags_t * _notmuch_convert_tags (void *ctx, Xapian::TermIterator &i, Xapian::TermIterator &end); +#pragma GCC visibility pop + #endif -- cgit v1.2.3