diff options
author | Carl Worth <cworth@cworth.org> | 2010-11-01 22:01:15 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-11-01 22:35:48 -0700 |
commit | c81cecf620d506653a1ead83858b8b3fc240abb5 (patch) | |
tree | f69fd387af5c9c28637f6f4f2fa0253df0be9571 /lib/database-private.h | |
parent | 67c3bc9db48c9e12d648df4792c706cae723676c (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/database-private.h')
-rw-r--r-- | lib/database-private.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <xapian.h> +#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 |