Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vsnet_headers.h
Go to the documentation of this file.
1 #if defined (_WIN32) && !defined (__CYGWIN__)
2 //#warning "Win32 platform"
3  #define in_addr_t unsigned long
4 //#ifdef USE_WINSOCK2
5 //#define _WIN32_WINNT 0x0400
6 //#endif
7  #ifndef NOMINMAX
8  #define NOMINMAX
9  #endif //tells VCC not to generate min/max macros
10  #include <windows.h>
11 #else
12  #include <netdb.h>
13  #include <string.h>
14  #include <sys/socket.h>
15  #include <sys/time.h>
16  #include <netinet/in.h>
17  #include <arpa/inet.h>
18  #include <unistd.h>
19  #define SOCKET_ERROR -1
20 #endif
21 #ifdef __APPLE__
22 #include <sys/types.h>
23 #endif
24 #include <stdlib.h>
25 #include <iostream>
26 using std::cout;
27 using std::endl;
28 using std::cerr;
29