]> git.notmuchmail.org Git - notmuch/blobdiff - util/xutil.h
remove GCC visibility pragmas
[notmuch] / util / xutil.h
index fd77f733a5b33a35dfb32bcb3055c0c1147a5303..b84e0e257e806937d37d41e1a00b44d5d6c81f73 100644 (file)
@@ -25,8 +25,6 @@
 #include <sys/types.h>
 #include <regex.h>
 
-#pragma GCC visibility push(hidden)
-
 /* xutil.c */
 void *
 xcalloc (size_t nmemb, size_t size);
@@ -43,13 +41,12 @@ xstrdup (const char *s);
 char *
 xstrndup (const char *s, size_t n);
 
-void
+/* Returns 0 for successful compilation, 1 otherwise */
+int
 xregcomp (regex_t *preg, const char *regex, int cflags);
 
 int
 xregexec (const regex_t *preg, const char *string,
          size_t nmatch, regmatch_t pmatch[], int eflags);
 
-#pragma GCC visibility pop
-
 #endif