diff options
author | Valentyn Korniienko <kornienko-vr@rambler.ru> | 2020-06-18 16:26:13 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-21 19:31:39 +0200 |
commit | e39a6e2ceaa5a2ad70f4f6aa5ed7056b25a52ccd (patch) | |
tree | c3aad4bb73f729fe16bed82ea8aa1c0480191d6b /lib/curl_setup.h | |
parent | 3f84b3e39a36b408d1a8cc603435a356b39b6c50 (diff) | |
download | curl-e39a6e2ceaa5a2ad70f4f6aa5ed7056b25a52ccd.tar.gz |
multibyte: Fixed access-> waccess to file for Windows Plarform
Reviewed-by: Marcel Raad
Closes #5580
Diffstat (limited to 'lib/curl_setup.h')
-rw-r--r-- | lib/curl_setup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h index 82b962b89..d76c630d0 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -335,8 +335,10 @@ # define struct_stat struct _stati64 # define LSEEK_ERROR (__int64)-1 # define fopen(fname,mode) curlx_win32_fopen(fname, mode) +# define access(fname,mode) curlx_win32_access(fname, mode) int curlx_win32_stat(const char *path, struct_stat *buffer); FILE *curlx_win32_fopen(const char *filename, const char *mode); + int curlx_win32_access(const char *path, int mode); #endif /* @@ -354,8 +356,10 @@ # define stat(fname,stp) curlx_win32_stat(fname, stp) # define struct_stat struct _stat # define fopen(fname,mode) curlx_win32_fopen(fname, mode) +# define access(fname,mode) curlx_win32_access(fname, mode) int curlx_win32_stat(const char *path, struct_stat *buffer); FILE *curlx_win32_fopen(const char *filename, const char *mode); + int curlx_win32_access(const char *path, int mode); # endif # define LSEEK_ERROR (long)-1 #endif |