diff options
Diffstat (limited to 'pcre.h')
-rw-r--r-- | pcre.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 */ |