Still not sure where exactly to put this. libsocketcan with c++ fails linking.
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