]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
smb: replace CURL_WIN32 with WIN32
authorViktor Szakats <commit@vsz.me>
Tue, 11 Oct 2022 21:05:44 +0000 (21:05 +0000)
committerViktor Szakats <commit@vsz.me>
Tue, 11 Oct 2022 21:05:44 +0000 (21:05 +0000)
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

index 10785f587531c8c906b56fca71655a6c53540651..a62e858143bce0bbd45580ac83a6e0e88bdddc42 100644 (file)
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -34,7 +34,7 @@
 #include <process.h>
 #ifdef CURL_WINDOWS_APP
 #define getpid GetCurrentProcessId
-#elif defined(CURL_WIN32)
+#elif defined(WIN32)
 #define getpid _getpid
 #endif
 #endif