summaryrefslogtreecommitdiff
path: root/pcre.h
diff options
context:
space:
mode:
Diffstat (limited to 'pcre.h')
-rw-r--r--pcre.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/pcre.h b/pcre.h
index c82b73a..e4355eb 100644
--- a/pcre.h
+++ b/pcre.h
@@ -2,7 +2,7 @@
* Perl-Compatible Regular Expressions *
*************************************************/
-/* Copyright (c) 1997 University of Cambridge */
+/* Copyright (c) 1998 University of Cambridge */
#ifndef _PCRE_H
#define _PCRE_H
@@ -13,6 +13,12 @@ it is needed here for malloc. */
#include <sys/types.h>
#include <stdlib.h>
+/* Allow for C++ users */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Options */
#define PCRE_CASELESS 0x0001
@@ -55,4 +61,8 @@ extern int pcre_info(const pcre *, int *, int *);
extern pcre_extra *pcre_study(const pcre *, int, const char **);
extern const char *pcre_version(void);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* End of pcre.h */