]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Allow use in C++ mode.
authorBruno Haible <bruno@clisp.org>
Sat, 12 Feb 2005 18:52:50 +0000 (18:52 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:14 +0000 (12:12 +0200)
gettext-tools/libgrep/ChangeLog
gettext-tools/libgrep/libgrep.h

index 88bdad0d25dcbd5fc6733e6188e33f7546a0fb3d..a6d66cf2caa364e87e84e47a80bb55033add5b9c 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-12  Bruno Haible  <bruno@clisp.org>
+
+       * libgrep.h: Add extern "C" for C++.
+
 2003-07-08  David Kaelbling  <drk@sgi.com>
 
        * dfa.c (lex): Remove non-constant initializers.
index 7220e6f7ffc1301856bebf04226115117502f8b7..99988c1f82d94955cc78a25ffd3626dbb2295cbe 100644 (file)
 #include <stdbool.h>
 #include <stddef.h>
 
+
+#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 */