From: martin-s Date: Tue, 5 Jun 2012 13:59:27 +0000 (+0000) Subject: Fix:Core:c++ compatibility X-Git-Tag: navit-0.5.0.5194svn~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06e803bbae3dfcfcd41df6bd474c79524464f9bd;p=profile%2Fivi%2Fnavit.git Fix:Core:c++ compatibility git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5129 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/layout.h b/navit/navit/layout.h index 41fcbbf..e8ff4c0 100644 --- a/navit/navit/layout.h +++ b/navit/navit/layout.h @@ -23,6 +23,11 @@ #include "item.h" #include "color.h" +#ifdef __cplusplus +extern "C" { +#endif + + struct element { enum { element_point, element_polyline, element_polygon, element_circle, element_text, element_icon, element_image, element_arrows } type; struct color color; @@ -124,4 +129,9 @@ struct image *image_new(struct attr *parent, struct attr **attrs); struct arrows *arrows_new(struct attr *parent, struct attr **attrs); int element_add_attr(struct element *e, struct attr *attr); /* end of prototypes */ + +#ifdef __cplusplus +} +#endif + #endif