From e899096ce46ab74be7bdce64e24b91e86bb3be78 Mon Sep 17 00:00:00 2001 From: 游雁 <zhifu.gzf@alibaba-inc.com> Date: 星期三, 11 十月 2023 16:19:52 +0800 Subject: [PATCH] Merge branch 'main' of github.com:alibaba-damo-academy/FunASR add --- funasr/runtime/onnxruntime/src/precomp.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/funasr/runtime/onnxruntime/src/precomp.h b/funasr/runtime/onnxruntime/src/precomp.h index 59e594e..5c49fd6 100644 --- a/funasr/runtime/onnxruntime/src/precomp.h +++ b/funasr/runtime/onnxruntime/src/precomp.h @@ -17,6 +17,25 @@ #include <numeric> #include <cstring> +#ifdef _WIN32 +#include<io.h> +#ifndef R_OK +#define R_OK 4 +#endif +#ifndef W_OK +#define W_OK 2 +#endif +#ifndef X_OK +#define X_OK 0 +#endif +#ifndef F_OK +#define F_OK 0 +#endif +#define access _access +#else +#include <unistd.h> +#endif + using namespace std; // third part #if defined(__APPLE__) @@ -33,6 +52,8 @@ // mine #include <glog/logging.h> + + #include "common-struct.h" #include "com-define.h" #include "commonfunc.h" -- Gitblit v1.9.1