--- code/trunk/pcreposix.h 2007/02/24 21:38:23 14 +++ code/trunk/pcreposix.h 2007/02/24 21:38:25 15 @@ -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 @@ #include +/* Allow for C++ users */ + +#ifdef __cplusplus +extern "C" { +#endif + /* Options defined by POSIX. */ #define REG_ICASE 0x01 @@ -69,4 +75,8 @@ 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 */