aboutsummaryrefslogtreecommitdiff
path: root/include/dyn-string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dyn-string.h')
-rw-r--r--include/dyn-string.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/dyn-string.h b/include/dyn-string.h
index 44e33deba3a..fd1ae9cad22 100644
--- a/include/dyn-string.h
+++ b/include/dyn-string.h
@@ -19,6 +19,9 @@ 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. */
+#ifdef __cplusplus
+extern "C" {
+#endif
typedef struct dyn_string
{
@@ -58,3 +61,7 @@ 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