Ver Fonte

Z991239-527 #comment fix: libPublicFun 在 Win 下编译失败

gifur há 5 anos atrás
pai
commit
bed70ab952
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      Other/libpublicFun/dllmain.cpp

+ 7 - 0
Other/libpublicFun/dllmain.cpp

@@ -1,5 +1,12 @@
 #ifdef _WIN32
 
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN             // 从 Windows 头文件中排除极少使用的内容
+#endif /*WIN32_LEAN_AND_MEAN*/
+
+// Windows 头文件
+#include <windows.h>
+
 BOOL APIENTRY DllMain(HMODULE hModule,
 	DWORD  ul_reason_for_call,
 	LPVOID lpReserved