summaryrefslogtreecommitdiff
path: root/include/fibheap.h
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-01 05:47:20 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-01 05:47:20 +0000
commit74b36562c33e22c776deb43412890eb13c23064d (patch)
tree3b2a132932c7507b3015e25cfed307df6d200eca /include/fibheap.h
parent3d5f43a06dd26a3ece3abb10b620b9d090d4a2d8 (diff)
downloadgcc-74b36562c33e22c776deb43412890eb13c23064d.tar.gz
* 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++. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148032 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/fibheap.h')
-rw-r--r--include/fibheap.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/fibheap.h b/include/fibheap.h
index 348c4ae2638..a3d09dd9db8 100644
--- a/include/fibheap.h
+++ b/include/fibheap.h
@@ -1,5 +1,6 @@
/* A Fibonacci heap datatype.
- Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2009
+ Free Software Foundation, Inc.
Contributed by Daniel Berlin (dan@cgsoftware.com).
This file is part of GCC.
@@ -42,6 +43,10 @@ Boston, MA 02110-1301, USA. */
#include "ansidecl.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef long fibheapkey_t;
typedef struct fibheap
@@ -83,4 +88,8 @@ extern void *fibheap_delete_node (fibheap_t, fibnode_t);
extern void fibheap_delete (fibheap_t);
extern fibheap_t fibheap_union (fibheap_t, fibheap_t);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FIBHEAP_H_ */