diff options
Diffstat (limited to 'src/common/socket.h')
-rw-r--r-- | src/common/socket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/socket.h b/src/common/socket.h index eb3a78f7e..9552575f3 100644 --- a/src/common/socket.h +++ b/src/common/socket.h @@ -72,6 +72,10 @@ extern time_t stall_time; #define WBUFW(p,pos) (*(unsigned short*)((p) + (pos))) #define WBUFL(p,pos) (*(unsigned long*)((p) + (pos))) +#define TOB(n) ((unsigned char)(n)) +#define TOW(n) ((unsigned short)(n)) +#define TOL(n) ((unsigned long)(n)) + //FD_SETSIZE must be modified on the project files/Makefile, since a change here won't affect // dependant windows libraries. /* |