Browse Source

Z991239-385 #comment TestIniMultiProcess.c在MSVC下编译失败

gifur 5 years ago
parent
commit
f5339647ea
1 changed files with 4 additions and 1 deletions
  1. 4 1
      winpr/libwinpr/utils/test/TestIniMultiProcess.c

+ 4 - 1
winpr/libwinpr/utils/test/TestIniMultiProcess.c

@@ -3,6 +3,9 @@
 #include <winpr/file.h>
 #include <winpr/synch.h>
 #include <winpr/thread.h>
+#ifdef _WIN32
+#include <Shlwapi.h>
+#endif //_WIN32
 
 void viceAll()
 {
@@ -128,7 +131,7 @@ static DWORD WINAPI thread_func(LPVOID arg)
 	return 0;
 }
 
-const int max_thread = 50;
+#define max_thread 50
 
 int main(int argc, char* argv[])
 {