diff --git a/include/spdk/bdev_module.h b/include/spdk/bdev_module.h index ee9f6694b3..85d94aa7b2 100644 --- a/include/spdk/bdev_module.h +++ b/include/spdk/bdev_module.h @@ -52,6 +52,10 @@ #include "spdk/util.h" #include "spdk/uuid.h" +#ifdef __cplusplus +extern "C" { +#endif + /** Block device module */ struct spdk_bdev_module { /** @@ -1290,4 +1294,8 @@ static void __attribute__((constructor)) _spdk_bdev_module_register_##name(void) #endif /* __SPDK_BDEV_MODULE_ONLY */ +#ifdef __cplusplus +} +#endif + #endif /* SPDK_BDEV_MODULE_H */