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
John Safranek 2019-03-04 13:52:10 -08:00
parent b6e4209d23
commit c14de5040b
1 changed files with 2 additions and 2 deletions

View File

@ -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