From 9db632fb75e4c7e505316baed7523117c7c4bf90 Mon Sep 17 00:00:00 2001 From: Jon Soifer Date: Thu, 27 Feb 2020 13:32:16 -0800 Subject: [PATCH] [Runtime] Fix TVM_DLL_EXPORT_TYPED_FUNC to work on Windows (#4955) * [Runtime] Fixed TVM_DLL_EXPORT_TYPED_FUNC to work on Windows * fix style Co-authored-by: Jon Soifer --- include/tvm/runtime/packed_func.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/tvm/runtime/packed_func.h b/include/tvm/runtime/packed_func.h index 1373f5f..7e37b2a 100644 --- a/include/tvm/runtime/packed_func.h +++ b/include/tvm/runtime/packed_func.h @@ -919,7 +919,12 @@ class TVMRetValue : public TVMPODValue_ { int* type_code, \ int num_args, \ TVMValue* out_value, \ - int* out_type_code) { \ + int* out_type_code); \ + int ExportName(TVMValue* args, \ + int* type_code, \ + int num_args, \ + TVMValue* out_value, \ + int* out_type_code) { \ try { \ ::tvm::runtime::TVMRetValue rv; \ Function(::tvm::runtime::TVMArgs( \ -- 2.7.4