diff --git a/include/spdk/bdev_zone.h b/include/spdk/bdev_zone.h index 1965810f4..eddf85968 100644 --- a/include/spdk/bdev_zone.h +++ b/include/spdk/bdev_zone.h @@ -13,6 +13,10 @@ #include "spdk/stdinc.h" #include "spdk/bdev.h" +#ifdef __cplusplus +extern "C" { +#endif + /** * \brief SPDK block device. * @@ -285,4 +289,8 @@ int spdk_bdev_zone_appendv_with_md(struct spdk_bdev_desc *desc, struct spdk_io_c */ uint64_t spdk_bdev_io_get_append_location(struct spdk_bdev_io *bdev_io); +#ifdef __cplusplus +} +#endif + #endif /* SPDK_BDEV_ZONE_H */