Skip to content

Commit

Permalink
Fix stray windows specific declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
yuslepukhin committed Sep 13, 2024
1 parent 14ba862 commit 71b3bbe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions onnxruntime/core/session/onnxruntime_c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2824,7 +2824,7 @@ ORT_API(const char*, OrtApis::GetVersionString) {
return ORT_VERSION;
}

const char* _stdcall OrtApis::GetBuildInfoString() noexcept {
const char* ORT_API_CALL OrtApis::GetBuildInfoString() noexcept {
return ORT_BUILD_INFO;
}

Expand All @@ -2837,8 +2837,6 @@ ORT_API(void, OrtApis::ReleaseEnv, OrtEnv* value) {
}

DEFINE_RELEASE_ORT_OBJECT_FUNCTION(Value, OrtValue)
void _stdcall OrtApis::ReleaseRunOptions(OrtRunOptions* value) noexcept {
delete reinterpret_cast<OrtRunOptions*>(value);
}
DEFINE_RELEASE_ORT_OBJECT_FUNCTION(RunOptions, OrtRunOptions)
DEFINE_RELEASE_ORT_OBJECT_FUNCTION(Session, ::onnxruntime::InferenceSession)
DEFINE_RELEASE_ORT_OBJECT_FUNCTION(ModelMetadata, ::onnxruntime::ModelMetadata)

0 comments on commit 71b3bbe

Please sign in to comment.