From b7cda8969e2682fb5ef3f822cc47a8a8ef1fc67b Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 7 Nov 2024 20:46:12 +0800 Subject: [PATCH] fix `windows.h` --- src/interpreter/dll.c | 6 ++---- src/modules/conio.c | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/interpreter/dll.c b/src/interpreter/dll.c index dfc1e2d8..54f0297f 100644 --- a/src/interpreter/dll.c +++ b/src/interpreter/dll.c @@ -4,10 +4,8 @@ #ifdef _WIN32 -#ifndef _WINDOWS_ -void* LoadLibraryA(const char*); -void* GetProcAddress(void*, const char*); -#endif +#define WIN32_LEAN_AND_MEAN +#include #else #include diff --git a/src/modules/conio.c b/src/modules/conio.c index 0bc43fcb..12ca2af4 100644 --- a/src/modules/conio.c +++ b/src/modules/conio.c @@ -3,6 +3,7 @@ #if PY_SYS_PLATFORM == 0 +#define WIN32_LEAN_AND_MEAN #include #include