mirror of https://github.com/wolfSSL/wolfssh.git
Change the ifdef around the Win32 wrapper functions to be switched off
when SCP or SFTP aren't enabled on a windows build.pull/139/head
parent
b6e4209d23
commit
c14de5040b
|
@ -139,7 +139,7 @@ int wfopen(WFILE** f, const char* filename, const char* mode)
|
|||
#endif /* !NO_FILESYSTEM */
|
||||
|
||||
|
||||
#ifdef USE_WINDOWS_API
|
||||
#if defined(USE_WINDOWS_API) && (defined(WOLFSSH_SFTP) || defined(WOLFSSH_SCP))
|
||||
|
||||
void* WS_CreateFileA(const char* fileName, unsigned long desiredAccess,
|
||||
unsigned long shareMode, unsigned long creationDisposition,
|
||||
|
@ -414,7 +414,7 @@ int WS_DeleteFileA(const char* fileName, void* heap)
|
|||
}
|
||||
|
||||
|
||||
#endif /* USE_WINDOWS_API */
|
||||
#endif /* USE_WINDOWS_API WOLFSSH_SFTP WOLFSSH_SCP */
|
||||
|
||||
|
||||
#ifndef WSTRING_USER
|
||||
|
|
Loading…
Reference in New Issue