TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
netheaders.h
Go to the documentation of this file.
1 #ifndef G3D_netheaders_h
2 #define G3D_netheaders_h
3 
4 #include "G3D/platform.h"
5 
6 #ifdef G3D_WINDOWS
7 # if (G3D_WINSOCK_MAJOR_VERSION == 2)
8 # include <winsock2.h>
9 # elif (G3D_WINSOCK_MAJOR_VERSION == 1)
10 # include <winsock.h>
11 # endif
12 #else
13 # include <sys/types.h>
14 # include <sys/socket.h>
15 # include <netinet/in.h>
16 # ifndef SOCKADDR_IN
17 # define SOCKADDR_IN struct sockaddr_in
18 # endif
19 # ifndef SOCKET
20 # define SOCKET int
21 # endif
22 #endif
23 
24 #endif