Skip to content

Commit

Permalink
Make Metadata compile under C.
Browse files Browse the repository at this point in the history
  • Loading branch information
areusch committed Feb 25, 2022
1 parent cc67a45 commit 928ac6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tvm/runtime/metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@
#include <tvm/runtime/c_runtime_api.h>
#ifdef __cplusplus
#include <tvm/runtime/metadata_base.h>
#endif
#include <tvm/support/span.h>
#endif

// Version number recorded in emitted artifacts for runtime checking.
#define TVM_METADATA_VERSION 1

#ifdef __cplusplus
namespace tvm {
namespace runtime {
namespace metadata {
Expand All @@ -51,7 +52,6 @@ static const constexpr int64_t kMetadataVersion = TVM_METADATA_VERSION;
} // namespace runtime
} // namespace tvm

#ifdef __cplusplus
extern "C" {
#endif

Expand Down

0 comments on commit 928ac6f

Please sign in to comment.