diff --git a/include/spdk_internal/event.h b/include/spdk_internal/event.h index c1a5b212d..436ed9ea5 100644 --- a/include/spdk_internal/event.h +++ b/include/spdk_internal/event.h @@ -36,6 +36,10 @@ #include "spdk/stdinc.h" +#ifdef __cplusplus +extern "C" { +#endif + #include "spdk/event.h" #include "spdk/json.h" #include "spdk/thread.h" @@ -129,4 +133,8 @@ void spdk_rpc_finish(void); spdk_add_subsystem_depend(&__subsystem_ ## _name ## _depend_on ## _depends_on); \ } +#ifdef __cplusplus +} +#endif + #endif /* SPDK_INTERNAL_EVENT_H */