- Timestamp:
- Nov 23, 2012, 8:52:59 PM (12 years ago)
- Branches:
- master
- Children:
- 6c92572
- Parents:
- d87708d
- Location:
- common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
common/compiler.h
rd87708d re084950 1 #if def_WIN641 #if defined _WIN64 2 2 #define WINDOWS 3 #elif _WIN323 #elif defined _WIN32 4 4 #define WINDOWS 5 #elif __linux5 #elif defined __linux 6 6 #define LINUX 7 #elif __unix7 #elif defined __unix 8 8 #define LINUX 9 #elif __posix9 #elif defined __posix 10 10 #define LINUX 11 11 #endif -
common/message.cpp
rd87708d re084950 3 3 #include "compiler.h" 4 4 5 #if defWINDOWS5 #if defined WINDOWS 6 6 #include <winsock2.h> 7 #elif defined LINUX 8 #include <sys/socket.h> 9 #include <netinet/in.h> 7 10 #endif 8 11 … … 14 17 int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest) 15 18 { 16 int socklen = sizeof(struct sockaddr_in);19 socklen_t socklen = sizeof(struct sockaddr_in); 17 20 18 21 // assume we don't care about the value of socklen
Note:
See TracChangeset
for help on using the changeset viewer.