From: martin-s Date: Tue, 9 Mar 2010 13:48:56 +0000 (+0000) Subject: Fix:Core:Better c++ compatibility X-Git-Tag: navit-0.5.0.5194svn~2203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fd01be471ef609896813f1ffc1bb67e1b302ae1;p=profile%2Fivi%2Fnavit.git Fix:Core:Better c++ compatibility git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@2988 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/roadprofile.h b/navit/navit/roadprofile.h index 04d7263..bc547de 100644 --- a/navit/navit/roadprofile.h +++ b/navit/navit/roadprofile.h @@ -17,6 +17,10 @@ * Boston, MA 02110-1301, USA. */ + +#ifdef __cplusplus +extern "C" { +#endif struct roadprofile { struct attr **attrs; int speed; @@ -28,3 +32,6 @@ int roadprofile_get_attr(struct roadprofile *this_, enum attr_type type, struct int roadprofile_set_attr(struct roadprofile *this_, struct attr *attr); int roadprofile_add_attr(struct roadprofile *this_, struct attr *attr); int roadprofile_remove_attr(struct roadprofile *this_, struct attr *attr); +#ifdef __cplusplus +} +#endif