summaryrefslogtreecommitdiff
path: root/include/dyn-string.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2009-06-01 05:47:20 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2009-06-01 05:47:20 +0000
commit75afccba060cc990398ffa0741aca68232ac6f56 (patch)
tree3b2a132932c7507b3015e25cfed307df6d200eca /include/dyn-string.h
parent6863c0f0d1b5341d517571a00f511170296fb305 (diff)
downloadgcc-75afccba060cc990398ffa0741aca68232ac6f56.tar.gz
ansidecl.h: Add extern "C" when compiling with C++.
* ansidecl.h: Add extern "C" when compiling with C++. Treat C++ the way we treat an ISO C compiler. Don't define inline as a macdro when compiling with C++. * dyn-string.h: Add header guard DYN_STRING_H. Add extern "C" when compiling with C++. * fibheap.h: Add extern "C" when compiling with C++. From-SVN: r148032
Diffstat (limited to 'include/dyn-string.h')
-rw-r--r--include/dyn-string.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/dyn-string.h b/include/dyn-string.h
index 44e33deba3a..2b147271e5f 100644
--- a/include/dyn-string.h
+++ b/include/dyn-string.h
@@ -1,5 +1,6 @@
/* An abstract string datatype.
- Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2002, 2004, 2005, 2009
+ Free Software Foundation, Inc.
Contributed by Mark Mitchell (mark@markmitchell.com).
This file is part of GCC.
@@ -19,6 +20,12 @@ along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 51 Franklin Street - Fifth Floor,
Boston, MA 02110-1301, USA. */
+#ifndef DYN_STRING_H
+#define DYN_STRING_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
typedef struct dyn_string
{
@@ -58,3 +65,9 @@ extern int dyn_string_append_cstr (dyn_string_t, const char *);
extern int dyn_string_append_char (dyn_string_t, int);
extern int dyn_string_substring (dyn_string_t, dyn_string_t, int, int);
extern int dyn_string_eq (dyn_string_t, dyn_string_t);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* !defined (DYN_STRING_H) */