On 10/12/2011 02:57 PM, Kurt Van Dijck wrote: > Still not sure where exactly to put this. > > libsocketcan with c++ fails linking.
looks good, Marc > > Signed-off-by: Kurt Van Dijck <kurt.van.di...@eia.be> > --- > diff --git a/include/libsocketcan.h b/include/libsocketcan.h > index 6098d6a..dc52053 100644 > --- a/include/libsocketcan.h > +++ b/include/libsocketcan.h > @@ -28,6 +28,10 @@ > > #include <can_netlink.h> > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > int can_do_restart(const char *name); > int can_do_stop(const char *name); > int can_do_start(const char *name); > @@ -47,4 +51,8 @@ int can_get_bittiming_const(const char *name, struct > can_bittiming_const *btc); > int can_get_berr_counter(const char *name, struct can_berr_counter *bc); > int can_get_device_stats(const char *name, struct can_device_stats *cds); > > +#ifdef __cplusplus > +} > +#endif > + > #endif > _______________________________________________ > Socketcan-core mailing list > Socketcan-core@lists.berlios.de > https://lists.berlios.de/mailman/listinfo/socketcan-core -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Socketcan-core mailing list Socketcan-core@lists.berlios.de https://lists.berlios.de/mailman/listinfo/socketcan-core