source:
network-game/common/Common.h@
227baaa
Last change on this file since 227baaa was 8f85180, checked in by , 12 years ago | |
---|---|
|
|
File size: 389 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); | |
[8f85180] | 15 | unsigned long long getCurrentMillis(); |
[edfd1d0] | 16 | |
17 | typedef struct | |
[3b1efcc] | 18 | { |
[edfd1d0] | 19 | int x; |
20 | int y; | |
[62ee2ce] | 21 | } POSITION; |
[3b1efcc] | 22 | |
[60017fc] | 23 | typedef struct |
24 | { | |
25 | float x; | |
26 | float y; | |
27 | } FLOAT_POSITION; | |
28 | ||
[3b1efcc] | 29 | #endif |
Note:
See TracBrowser
for help on using the repository browser.