source:
network-game/common/Common.h@
384b7e0
| Last change on this file since 384b7e0 was 62ee2ce, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 290 bytes | |
| Rev | Line | |
|---|---|---|
| [3b1efcc] | 1 | #ifndef _COMMON_H |
| 2 | #define _COMMON_H | |
| 3 | ||
| [4c202e0] | 4 | #include "Compiler.h" |
| 5 | ||
| 6 | #if defined WINDOWS | |
| 7 | #include <winsock2.h> | |
| 8 | #include <WS2tcpip.h> | |
| 9 | #elif defined LINUX | |
| 10 | #include <fcntl.h> | |
| 11 | #include <assert.h> | |
| 12 | #endif | |
| [edfd1d0] | 13 | |
| 14 | void set_nonblock(int sock); | |
| 15 | ||
| 16 | typedef struct | |
| [3b1efcc] | 17 | { |
| [edfd1d0] | 18 | int x; |
| 19 | int y; | |
| [62ee2ce] | 20 | } POSITION; |
| [3b1efcc] | 21 | |
| 22 | #endif |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/medieval/chrome/site/your_project_logo.png)