From 3be744790cfa3d8614fe81b1e398c505a7025915 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 27 May 2006 18:15:40 +0000 Subject: [PATCH] Prepare libdw.h for use in C++. --- libdw/ChangeLog | 4 ++++ libdw/libdw.h | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/libdw/ChangeLog b/libdw/ChangeLog index c6ee77afe..95312497d 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,7 @@ +2006-05-27 Ulrich Drepper + + * libdw.h: Add extern "C". + 2006-05-22 Ulrich Drepper * dwarf_getaranges.c (dwarf_getaranges): Handle files without diff --git a/libdw/libdw.h b/libdw/libdw.h index 351aef26e..424c354e1 100644 --- a/libdw/libdw.h +++ b/libdw/libdw.h @@ -1,5 +1,5 @@ /* Interfaces for libdw. - Copyright (C) 2002, 2004, 2005 Red Hat, Inc. + Copyright (C) 2002, 2004, 2005, 2006 Red Hat, Inc. This file is part of Red Hat elfutils. Contributed by Ulrich Drepper , 2002. @@ -194,6 +194,10 @@ typedef void (*__attribute__ ((noreturn)) Dwarf_OOM) (void); #endif +#ifdef __cplusplus +extern "C" { +#endif + /* Create a handle for a new debug session. */ extern Dwarf *dwarf_begin (int fildes, Dwarf_Cmd cmd); @@ -626,4 +630,8 @@ dwarf_whatform (Dwarf_Attribute *attr) } #endif /* Optimize. */ +#ifdef __cplusplus +} +#endif + #endif /* libdw.h */ -- 2.47.2