diff --git a/include/onnxruntime/core/session/onnxruntime_c_api.h b/include/onnxruntime/core/session/onnxruntime_c_api.h index 247d204f9b..176b988ad0 100644 --- a/include/onnxruntime/core/session/onnxruntime_c_api.h +++ b/include/onnxruntime/core/session/onnxruntime_c_api.h @@ -218,7 +218,7 @@ struct OrtApiBase { }; typedef struct OrtApiBase OrtApiBase; -ORT_EXPORT const OrtApiBase* ORT_API_CALL OrtGetApiBase() NO_EXCEPTION; +ORT_EXPORT const OrtApiBase* ORT_API_CALL OrtGetApiBase(void) NO_EXCEPTION; struct OrtApi { /** diff --git a/onnxruntime/core/session/onnxruntime_c_api.cc b/onnxruntime/core/session/onnxruntime_c_api.cc index 99ff0212ad..de18d1fe64 100644 --- a/onnxruntime/core/session/onnxruntime_c_api.cc +++ b/onnxruntime/core/session/onnxruntime_c_api.cc @@ -1460,7 +1460,7 @@ ORT_API(const char*, OrtApis::GetVersionString) { return ORT_VERSION; } -const OrtApiBase* ORT_API_CALL OrtGetApiBase() NO_EXCEPTION { +const OrtApiBase* ORT_API_CALL OrtGetApiBase(void) NO_EXCEPTION { return &ort_api_base; }