]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libffi: Always define `WIN32_LEAN_AND_MEAN` before <windows.h>
authorPietro Monteiro <pietro@sociotechnical.xyz>
Thu, 21 May 2026 21:59:57 +0000 (17:59 -0400)
committerPietro Monteiro <pietro@sociotechnical.xyz>
Thu, 21 May 2026 21:59:57 +0000 (17:59 -0400)
From commit:
902c755930326cb4405672aa3ea13c35c653cbff - Always define `WIN32_LEAN_AND_MEAN` before <windows.h>

Forwarded upstream: https://github.com/libffi/libffi/pull/937

libffi/ChangeLog:
PR libffi/117635
* src/aarch64/ffi.c: Define `WIN32_LEAN_AND_MEAN` before
`#include <windows.h>`.

Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
libffi/src/aarch64/ffi.c

index 94c643b70ab67849da10d0a6344942c6e314f641..1c78199174da57e25713b5d7b9dd86797cce19bd 100644 (file)
@@ -28,6 +28,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 #include <ffi_common.h>
 #include "internal.h"
 #ifdef _WIN32
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h> /* FlushInstructionCache */
 #endif
 #include <tramp.h>