]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/cgo: use correct lean and mean macro
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 14 Feb 2021 18:43:31 +0000 (19:43 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 23 Feb 2021 15:04:12 +0000 (15:04 +0000)
WIN64_LEAN_AND_MEAN is not the correct macro to use and doesn't ever
exist.

Change-Id: I32a5523cc0f7cc3f3a4d022071cf81f88db39aa9
Reviewed-on: https://go-review.googlesource.com/c/go/+/291634
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Trust: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/runtime/cgo/gcc_libinit_windows.c
src/runtime/cgo/gcc_windows_amd64.c

index 2732248bdcf5e00d59294c68e264f36dbc26ffa5..ad5038667a5b62458a147d1fa0a6f12d876aa431 100644 (file)
@@ -4,7 +4,7 @@
 
 // +build cgo
 
-#define WIN64_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include <process.h>
 
index 25cfd086ddc3331997d59e7cb24a061b42d64e15..9df9b9b1e4a0312144fa28ef4ad9f9b0dffec00c 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#define WIN64_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include <process.h>
 #include <stdlib.h>