diff options
Diffstat (limited to 'Modules/pcre.h')
-rw-r--r-- | Modules/pcre.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Modules/pcre.h b/Modules/pcre.h index 4a01bd2..06768a9 100644 --- a/Modules/pcre.h +++ b/Modules/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 @@ -17,6 +17,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 @@ -68,4 +74,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 */ |