Turi Create  4.0
windows_wrapper.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #ifndef TURI_GL_WINDOWS_H_
7 #define TURI_GL_WINDOWS_H_
8 
9 // Provides a consistent way to include windows.h. We need to include
10 // the winsock2.h header first, as using the outdated winsock.h header
11 // can cause issues when linking against libraries that use the new
12 // winsock2.h header (introduced in Windows 95). windows.h includes
13 // this by default.
14 
15 #ifdef _WIN32
16 #include <winsock2.h>
17 #include <windows.h>
18 #endif
19 
20 #endif /* _GL_WINDOWS_H_ */