Last change
on this file since 8f438a5 was 4c202e0, checked in by dportnoy <dmp1488@…>, 12 years ago |
Added Player to the visual studio project, changed Common to use the #defines in Compiler.h, and added basic client support for processing MSG_TYPE_PLAYER messages
|
-
Property mode
set to
100644
|
File size:
292 bytes
|
Line | |
---|
1 | #ifndef _COMMON_H
|
---|
2 | #define _COMMON_H
|
---|
3 |
|
---|
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
|
---|
13 |
|
---|
14 | void set_nonblock(int sock);
|
---|
15 |
|
---|
16 | typedef struct
|
---|
17 | {
|
---|
18 | int x;
|
---|
19 | int y;
|
---|
20 | } PLAYER_POS;
|
---|
21 |
|
---|
22 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.