From: uz Date: Mon, 9 Aug 2010 15:55:49 +0000 (+0000) Subject: Add 'extern "C"' so the module may be used from C++ sources. X-Git-Tag: V2.13.3~650 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5625977188f60590a4b538a3106d17369a5c86b5;p=cc65 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 --- 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 + +