X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=util%2Fxutil.h;h=e27070009b6839f51653f946bdc0971653915c68;hp=92992564487ed26ad6b363cbd90817988a726738;hb=HEAD;hpb=7a87830f5eb32373bc17235e9d178d383830dc64 diff --git a/util/xutil.h b/util/xutil.h index 92992564..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 * @@ -51,6 +53,8 @@ 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