From c5256211d6f45eb943b203d16da7439d42abe885 Mon Sep 17 00:00:00 2001 From: 雾聪 <wucong.lyb@alibaba-inc.com> Date: 星期一, 16 十月 2023 12:36:02 +0800 Subject: [PATCH] update funasr-wss-server.cpp --- 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