diff --git a/include/tvm/runtime/metadata.h b/include/tvm/runtime/metadata.h index 49eef34d08198..4a8a4e0b2f60f 100644 --- a/include/tvm/runtime/metadata.h +++ b/include/tvm/runtime/metadata.h @@ -33,12 +33,13 @@ #include #ifdef __cplusplus #include -#endif #include +#endif // Version number recorded in emitted artifacts for runtime checking. #define TVM_METADATA_VERSION 1 +#ifdef __cplusplus namespace tvm { namespace runtime { namespace metadata { @@ -51,7 +52,6 @@ static const constexpr int64_t kMetadataVersion = TVM_METADATA_VERSION; } // namespace runtime } // namespace tvm -#ifdef __cplusplus extern "C" { #endif