Browse Source

Added #pragma comment(lib, "Ws2_32.lib") for win32

Sergey Lyubka 13 năm trước cách đây
mục cha
commit
586574e176
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      mongoose.c

+ 3 - 0
mongoose.c

@@ -171,6 +171,9 @@ typedef struct DIR {
   struct dirent  result;
 } DIR;
 
+// Mark required libraries
+#pragma comment(lib, "Ws2_32.lib")
+
 #else    // UNIX  specific
 #include <sys/wait.h>
 #include <sys/socket.h>