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 +#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