Jelajahi Sumber

fix `windows.h`

blueloveTH 1 tahun lalu
induk
melakukan
b7cda8969e
2 mengubah file dengan 3 tambahan dan 4 penghapusan
  1. 2 4
      src/interpreter/dll.c
  2. 1 0
      src/modules/conio.c

+ 2 - 4
src/interpreter/dll.c

@@ -4,10 +4,8 @@
 
 
 #ifdef _WIN32
 #ifdef _WIN32
 
 
-#ifndef _WINDOWS_
-void* LoadLibraryA(const char*);
-void* GetProcAddress(void*, const char*);
-#endif
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
 
 
 #else
 #else
 #include <dlfcn.h>
 #include <dlfcn.h>

+ 1 - 0
src/modules/conio.c

@@ -3,6 +3,7 @@
 
 
 #if PY_SYS_PLATFORM == 0
 #if PY_SYS_PLATFORM == 0
 
 
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include <windows.h>
 #include <conio.h>
 #include <conio.h>