修复Windows下的编译问题

This commit is contained in:
2025-03-10 14:45:15 +08:00
parent bd90f2f6f6
commit e831b8e862
4 changed files with 4 additions and 4 deletions

View File

@ -305,7 +305,7 @@ void InstallOrtAPI(Napi::Env env, Napi::Object exports)
OrtSession::Init(env, exports);
}
#if defined(USE_ONNXRUNTIME) && not defined(BUILD_MAIN_WORD)
#if defined(USE_ONNXRUNTIME) && !defined(BUILD_MAIN_WORD)
static Object Init(Env env, Object exports)
{
InstallOrtAPI(env, exports);