build: visibility=default for library structs is no longer needed

Commit d5523ead90 ("Mark some structures in the library interface
with visibility=default attribute.") fixed some mixed visibility
issues with structs. With the symbol default visibility reversed, this
is no longer a problem.
This commit is contained in:
Jani Nikula 2017-05-10 22:42:12 +03:00 committed by David Bremner
parent bc11759dd1
commit 30c475c1ef
4 changed files with 5 additions and 11 deletions

View file

@ -26,7 +26,7 @@
#include <gmime/gmime.h> #include <gmime/gmime.h>
struct visible _notmuch_message { struct _notmuch_message {
notmuch_database_t *notmuch; notmuch_database_t *notmuch;
Xapian::docid doc_id; Xapian::docid doc_id;
int frozen; int frozen;

View file

@ -74,12 +74,6 @@ NOTMUCH_BEGIN_DECLS
#define unused(x) x __attribute__ ((unused)) #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 /* 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. * unlikely. The talloc source code comes to us via the GNU LGPL v. 3.
*/ */
@ -453,7 +447,7 @@ typedef struct _notmuch_message_list {
* somewhere with some nasty C++ objects in it. We'll try to maintain * 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) * ignorance of that here. (See notmuch_mset_messages_t in query.cc)
*/ */
struct visible _notmuch_messages { struct _notmuch_messages {
notmuch_bool_t is_of_list_type; notmuch_bool_t is_of_list_type;
notmuch_doc_id_set_t *excluded_doc_ids; notmuch_doc_id_set_t *excluded_doc_ids;
notmuch_message_node_t *iterator; notmuch_message_node_t *iterator;
@ -522,7 +516,7 @@ typedef struct _notmuch_string_node {
struct _notmuch_string_node *next; struct _notmuch_string_node *next;
} notmuch_string_node_t; } notmuch_string_node_t;
typedef struct visible _notmuch_string_list { typedef struct _notmuch_string_list {
int length; int length;
notmuch_string_node_t *head; notmuch_string_node_t *head;
notmuch_string_node_t **tail; notmuch_string_node_t **tail;

View file

@ -49,7 +49,7 @@ struct _notmuch_doc_id_set {
#define DOCIDSET_WORD(bit) ((bit) / CHAR_BIT) #define DOCIDSET_WORD(bit) ((bit) / CHAR_BIT)
#define DOCIDSET_BIT(bit) ((bit) % CHAR_BIT) #define DOCIDSET_BIT(bit) ((bit) % CHAR_BIT)
struct visible _notmuch_threads { struct _notmuch_threads {
notmuch_query_t *query; notmuch_query_t *query;
/* The ordered list of doc ids matched by the query. */ /* The ordered list of doc ids matched by the query. */

View file

@ -26,7 +26,7 @@
#define EMPTY_STRING(s) ((s)[0] == '\0') #define EMPTY_STRING(s) ((s)[0] == '\0')
struct visible _notmuch_thread { struct _notmuch_thread {
notmuch_database_t *notmuch; notmuch_database_t *notmuch;
char *thread_id; char *thread_id;
char *subject; char *subject;