summaryrefslogtreecommitdiff
path: root/pcreposix.h
diff options
context:
space:
mode:
authornigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-02-24 21:38:25 +0000
committernigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-02-24 21:38:25 +0000
commit5b147ef568d14b173955c93d7cc4137703d7ac0a (patch)
treef53a59b1bac518b16e3219d79d4db9e0bc70bc34 /pcreposix.h
parent67741e1934bcbb6e8ceb2a75a5c6f7f14ae28438 (diff)
downloadpcre-5b147ef568d14b173955c93d7cc4137703d7ac0a.tar.gz
Load pcre-1.06 into code/trunk.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@15 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcreposix.h')
-rw-r--r--pcreposix.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/pcreposix.h b/pcreposix.h
index 1d0f16a..91636aa 100644
--- a/pcreposix.h
+++ b/pcreposix.h
@@ -2,7 +2,7 @@
* Perl-Compatible Regular Expressions *
*************************************************/
-/* Copyright (c) 1997 University of Cambridge */
+/* Copyright (c) 1998 University of Cambridge */
#ifndef _PCREPOSIX_H
#define _PCREPOSIX_H
@@ -15,6 +15,12 @@ be there. I hope. */
#include <stdlib.h>
+/* Allow for C++ users */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Options defined by POSIX. */
#define REG_ICASE 0x01
@@ -69,4 +75,8 @@ extern int regexec(regex_t *, const char *, size_t, regmatch_t *, int);
extern size_t regerror(int, const regex_t *, char *, size_t);
extern void regfree(regex_t *);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* End of pcreposix.h */