From 5625977188f60590a4b538a3106d17369a5c86b5 Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 9 Aug 2010 15:55:49 +0000 Subject: [PATCH] Add 'extern "C"' so the module may be used from C++ sources. git-svn-id: svn://svn.cc65.org/cc65/trunk@4801 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/dbginfo/dbginfo.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/dbginfo/dbginfo.h b/src/dbginfo/dbginfo.h index 8d155f5fa..65587605c 100644 --- a/src/dbginfo/dbginfo.h +++ b/src/dbginfo/dbginfo.h @@ -38,6 +38,13 @@ +/* Allow usage from C++ */ +#ifdef __cplusplus +extern "C" { +#endif + + + /*****************************************************************************/ /* Data */ /*****************************************************************************/ @@ -183,10 +190,15 @@ void cc65_free_segmentinfo (cc65_dbginfo handle, cc65_segmentinfo* info); -/* End of dbginfo.h */ - +/* Allow usage from C++ */ +#ifdef __cplusplus +} #endif +/* End of dbginfo.h */ +#endif + + -- 2.39.5