• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

密猟オンラインサーバープログラム


Commit MetaInfo

Revision2 (tree)
Time2016-01-19 18:28:04
Authormanjihq

Log Message

Win32環境下コンパイル可能なようにport.h修正
同じくWin32環境下でNMAKEを用いてVisualCでビルドするメイクファイルを追加

Change Summary

Incremental Difference

--- trunk/port.h (revision 1)
+++ trunk/port.h (revision 2)
@@ -32,6 +32,7 @@
3232
3333 #elif defined(MAKEWIN32)
3434 #define STRICT
35+#include <winsock2.h>
3536 #include <windows.h>
3637 #include <stdio.h>
3738 #include <mbstring.h>
@@ -55,6 +56,11 @@
5556 }
5657 #define cleanup_socket_interface() {\
5758 WSACleanup(); }
59+
60+/* win32 no have 'socklen_t' */
61+#define socklen_t int
62+
63+
5864 #else
5965 #error NEED enviroment-type!
6066 #endif