SLikeNet
0.1.3
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
WindowsIncludes.h
Go to the documentation of this file.
1
/*
2
* Original work: Copyright (c) 2014, Oculus VR, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* RakNet License.txt file in the licenses directory of this source tree. An additional grant
7
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
8
*
9
*
10
* Modified work: Copyright (c) 2016, SLikeSoft UG (haftungsbeschränkt)
11
*
12
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
13
* license found in the license.txt file in the root directory of this source tree.
14
*/
15
16
#define NOMINMAX
17
18
#if defined (WINDOWS_STORE_RT)
19
#include <windows.h>
20
#include <winsock.h>
21
#elif defined (_WIN32)
22
#include <winsock2.h>
23
#include <windows.h>
24
#include <ws2tcpip.h>
25
26
// Must always include Winsock2.h before windows.h
27
// or else:
28
// winsock2.h(99) : error C2011: 'fd_set' : 'struct' type redefinition
29
// winsock2.h(134) : warning C4005: 'FD_SET' : macro redefinition
30
// winsock.h(83) : see previous definition of 'FD_SET'
31
// winsock2.h(143) : error C2011: 'timeval' : 'struct' type redefinition
32
// winsock2.h(199) : error C2011: 'hostent' : 'struct' type redefinition
33
// winsock2.h(212) : error C2011: 'netent' : 'struct' type redefinition
34
// winsock2.h(219) : error C2011: 'servent' : 'struct' type redefinition
35
36
#endif
Source
include
slikenet
WindowsIncludes.h
Generated on Wed Aug 14 2019 22:09:46 for SLikeNet by
1.8.2