X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=util%2Fxutil.h;h=e27070009b6839f51653f946bdc0971653915c68;hp=fd77f733a5b33a35dfb32bcb3055c0c1147a5303;hb=HEAD;hpb=1dedfc90f6eee7cad10f1a1ceb39a7a1c4dbd1b1 diff --git a/util/xutil.h b/util/xutil.h index fd77f733..e2707000 100644 --- a/util/xutil.h +++ b/util/xutil.h @@ -13,7 +13,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see http://www.gnu.org/licenses/ . + * along with this program. If not, see https://www.gnu.org/licenses/ . * * Author: Carl Worth */ @@ -25,7 +25,9 @@ #include #include -#pragma GCC visibility push(hidden) +#ifdef __cplusplus +extern "C" { +#endif /* xutil.c */ void * @@ -43,13 +45,16 @@ 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 +#ifdef __cplusplus +} +#endif #endif