]> git.notmuchmail.org Git - notmuch/blobdiff - util/xutil.h
util/crypto: add information about the payload part
[notmuch] / util / xutil.h
index 92992564487ed26ad6b363cbd90817988a726738..e27070009b6839f51653f946bdc0971653915c68 100644 (file)
@@ -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 <cworth@cworth.org>
  */
@@ -25,7 +25,9 @@
 #include <sys/types.h>
 #include <regex.h>
 
-#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