summaryrefslogtreecommitdiffstats
path: root/libopkg/xregex.h
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/xregex.h')
-rw-r--r--libopkg/xregex.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libopkg/xregex.h b/libopkg/xregex.h
index f67572b..9fc55a1 100644
--- a/libopkg/xregex.h
+++ b/libopkg/xregex.h
@@ -21,11 +21,18 @@
#include <sys/types.h>
#include <regex.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int xregcomp(regex_t *preg, const char *regex, int cflags);
static inline void xregfree(regex_t *preg)
{
regfree(preg);
}
+#ifdef __cplusplus
+}
+#endif
#endif