From 28edcbe195cab11962a0c7c09c01323b24970d2e Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 11 Oct 2022 21:05:44 +0000 Subject: [PATCH] smb: replace CURL_WIN32 with WIN32 PR #9255 aimed to fix a Cygwin/MSYS issue (#8220). It used the `CURL_WIN32` macro, but that one is not defined here, while compiling curl itself. This patch changes this to `WIN32`, assuming this was the original intent. Regression from 1c52e8a3795ccdf8ec9c308f4f8f19cf10ea1f1a Reviewed-by: Marcel Raad Closes #9701 --- lib/smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/smb.c b/lib/smb.c index 10785f5875..a62e858143 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -34,7 +34,7 @@ #include #ifdef CURL_WINDOWS_APP #define getpid GetCurrentProcessId -#elif defined(CURL_WIN32) +#elif defined(WIN32) #define getpid _getpid #endif #endif