Fix:Core:Better c++ compatibility
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 9 Mar 2010 13:48:56 +0000 (13:48 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 9 Mar 2010 13:48:56 +0000 (13:48 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@2988 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/roadprofile.h

index 04d7263..bc547de 100644 (file)
  * 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