aboutsummaryrefslogtreecommitdiff
path: root/libelf/libelf.h
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/libelf.h')
-rw-r--r--libelf/libelf.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libelf/libelf.h b/libelf/libelf.h
index 41e7224956fc..47c11b901585 100644
--- a/libelf/libelf.h
+++ b/libelf/libelf.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: libelf.h 2988 2014-03-17 08:51:49Z jkoshy $
+ * $Id: libelf.h 3174 2015-03-27 17:13:41Z emaste $
*/
#ifndef _LIBELF_H_
@@ -176,7 +176,9 @@ enum Elf_Error {
#define ELF_F_ARCHIVE 0x100U /* archive creation */
#define ELF_F_ARCHIVE_SYSV 0x200U /* SYSV style archive */
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
Elf *elf_begin(int _fd, Elf_Cmd _cmd, Elf *_elf);
int elf_cntl(Elf *_elf, Elf_Cmd _cmd);
int elf_end(Elf *_elf);
@@ -247,6 +249,8 @@ Elf_Data *elf64_xlatetof(Elf_Data *_dst, const Elf_Data *_src,
unsigned int _enc);
Elf_Data *elf64_xlatetom(Elf_Data *_dst, const Elf_Data *_src,
unsigned int _enc);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif /* _LIBELF_H_ */