From 928ac6f8e2e952f4c3f57e679f19c131c224a9ad Mon Sep 17 00:00:00 2001 From: Andrew Reusch Date: Fri, 25 Feb 2022 13:33:58 -0800 Subject: [PATCH] Make Metadata compile under C. --- include/tvm/runtime/metadata.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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