From c14de5040b8f8531c4b26ba5ef38fd52314a4a3c Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 4 Mar 2019 13:52:10 -0800 Subject: [PATCH] Change the ifdef around the Win32 wrapper functions to be switched off when SCP or SFTP aren't enabled on a windows build. --- src/port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/port.c b/src/port.c index 24adfac..50628e0 100644 --- a/src/port.c +++ b/src/port.c @@ -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