From db33d0f610f7593ad1e61f8c3cc68de4a9b68f99 Mon Sep 17 00:00:00 2001 From: 雾聪 <wucong.lyb@alibaba-inc.com> Date: 星期四, 12 十月 2023 13:05:26 +0800 Subject: [PATCH] Merge branch 'main' of https://github.com/alibaba-damo-academy/FunASR into main --- 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