X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=02e24ee8eb20d9c763c14d25454f86ad741a8133;hb=8bb6f7869c4c98190f010d60409938b1c50c5968;hp=0856751c318841b08eeab0d1035ea6393cb8da7b;hpb=f3c1eebfaf8526129ae6946cbcd44a3c602563d6;p=notmuch diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 0856751c..02e24ee8 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -81,6 +81,12 @@ _internal_error (const char *format, ...) PRINTF_ATTRIBUTE (1, 2); #define unused(x) x __attribute__ ((unused)) +#ifdef __cplusplus +# define visible __attribute__((visibility("default"))) +#else +# define visible +#endif + /* Thanks to Andrew Tridgell's (SAMBA's) talloc for this definition of * unlikely. The talloc source code comes to us via the GNU LGPL v. 3. */ @@ -405,7 +411,7 @@ typedef struct _notmuch_message_list { * somewhere with some nasty C++ objects in it. We'll try to maintain * ignorance of that here. (See notmuch_mset_messages_t in query.cc) */ -struct _notmuch_messages { +struct visible _notmuch_messages { notmuch_bool_t is_of_list_type; notmuch_message_node_t *iterator; };