From: Bruno Haible Date: Sat, 12 Feb 2005 18:52:50 +0000 (+0000) Subject: Allow use in C++ mode. X-Git-Tag: v0.14.2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fc4618744ee017027159c30bbc9ec2d47699c8d;p=thirdparty%2Fgettext.git Allow use in C++ mode. --- diff --git a/gettext-tools/libgrep/ChangeLog b/gettext-tools/libgrep/ChangeLog index 88bdad0d2..a6d66cf2c 100644 --- a/gettext-tools/libgrep/ChangeLog +++ b/gettext-tools/libgrep/ChangeLog @@ -1,3 +1,7 @@ +2005-02-12 Bruno Haible + + * libgrep.h: Add extern "C" for C++. + 2003-07-08 David Kaelbling * dfa.c (lex): Remove non-constant initializers. diff --git a/gettext-tools/libgrep/libgrep.h b/gettext-tools/libgrep/libgrep.h index 7220e6f7f..99988c1f8 100644 --- a/gettext-tools/libgrep/libgrep.h +++ b/gettext-tools/libgrep/libgrep.h @@ -21,6 +21,12 @@ #include #include + +#ifdef __cplusplus +extern "C" { +#endif + + /* A pattern matcher. */ typedef struct { @@ -45,4 +51,10 @@ extern matcher_t matcher_egrep; /* POSIX Extended Regular Expressions */ extern matcher_t matcher_fgrep; /* Fixed String search */ extern matcher_t matcher_awk; /* AWK Regular Expressions */ + +#ifdef __cplusplus +} +#endif + + #endif /* _LIBGREP_H */