summary refs log tree commit diff
path: root/malloc/obstack.h
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/obstack.h')
-rw-r--r--malloc/obstack.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/malloc/obstack.h b/malloc/obstack.h
index 0e7eb09054..b67f0545f1 100644
--- a/malloc/obstack.h
+++ b/malloc/obstack.h
@@ -106,6 +106,10 @@ Summary:
 
 #ifndef __OBSTACK_H__
 #define __OBSTACK_H__
+
+#ifdef __cpluscplus
+extern "C" {
+#endif
 
 /* We use subtraction of (char *) 0 instead of casting to int
    because on word-addressable machines a simple cast to int
@@ -578,4 +582,8 @@ __extension__								\
 
 #endif /* not __GNUC__ or not __STDC__ */
 
+#ifdef __cplusplus
+}	/* C++ */
+#endif
+
 #endif /* not __OBSTACK_H__ */