VirtualBox

source: vbox/trunk/src/libs/curl-7.83.1/lib/setup-win32.h@ 97138

最後變更 在這個檔案從97138是 95312,由 vboxsync 提交於 3 年 前

libs/{curl,libxml2}: OSE export fixes, bugref:8515

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.9 KB
 
1#ifndef HEADER_CURL_SETUP_WIN32_H
2#define HEADER_CURL_SETUP_WIN32_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al.
11 *
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
14 * are also available at https://curl.se/docs/copyright.html.
15 *
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 ***************************************************************************/
24
25/*
26 * Include header files for windows builds before redefining anything.
27 * Use this preprocessor block only to include or exclude windows.h,
28 * winsock2.h or ws2tcpip.h. Any other windows thing belongs
29 * to any other further and independent block. Under Cygwin things work
30 * just as under linux (e.g. <sys/socket.h>) and the winsock headers should
31 * never be included when __CYGWIN__ is defined. configure script takes
32 * care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK2_H,
33 * neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined.
34 */
35
36#ifdef HAVE_WINDOWS_H
37# if defined(UNICODE) && !defined(_UNICODE)
38# define _UNICODE
39# endif
40# if defined(_UNICODE) && !defined(UNICODE)
41# define UNICODE
42# endif
43# ifdef VBOX
44# include <iprt/win/windows.h>
45# else
46# include <winerror.h>
47# include <windows.h>
48# endif
49# ifdef HAVE_WINSOCK2_H
50# ifdef VBOX
51# include <iprt/win/winsock2.h>
52# else
53# include <winsock2.h>
54# endif
55# ifdef HAVE_WS2TCPIP_H
56# ifdef VBOX
57# include <iprt/win/ws2tcpip.h>
58# else
59# include <ws2tcpip.h>
60# endif
61# endif
62# endif
63# include <tchar.h>
64# ifdef UNICODE
65 typedef wchar_t *(*curl_wcsdup_callback)(const wchar_t *str);
66# endif
67#endif
68
69/*
70 * Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else
71 * undefine USE_WINSOCK.
72 */
73
74#undef USE_WINSOCK
75
76#ifdef HAVE_WINSOCK2_H
77# define USE_WINSOCK 2
78#endif
79
80/*
81 * Define _WIN32_WINNT_[OS] symbols because not all Windows build systems have
82 * those symbols to compare against, and even those that do may be missing
83 * newer symbols.
84 */
85
86#ifndef _WIN32_WINNT_NT4
87#define _WIN32_WINNT_NT4 0x0400 /* Windows NT 4.0 */
88#endif
89#ifndef _WIN32_WINNT_WIN2K
90#define _WIN32_WINNT_WIN2K 0x0500 /* Windows 2000 */
91#endif
92#ifndef _WIN32_WINNT_WINXP
93#define _WIN32_WINNT_WINXP 0x0501 /* Windows XP */
94#endif
95#ifndef _WIN32_WINNT_WS03
96#define _WIN32_WINNT_WS03 0x0502 /* Windows Server 2003 */
97#endif
98#ifndef _WIN32_WINNT_WIN6
99#define _WIN32_WINNT_WIN6 0x0600 /* Windows Vista */
100#endif
101#ifndef _WIN32_WINNT_VISTA
102#define _WIN32_WINNT_VISTA 0x0600 /* Windows Vista */
103#endif
104#ifndef _WIN32_WINNT_WS08
105#define _WIN32_WINNT_WS08 0x0600 /* Windows Server 2008 */
106#endif
107#ifndef _WIN32_WINNT_LONGHORN
108#define _WIN32_WINNT_LONGHORN 0x0600 /* Windows Vista */
109#endif
110#ifndef _WIN32_WINNT_WIN7
111#define _WIN32_WINNT_WIN7 0x0601 /* Windows 7 */
112#endif
113#ifndef _WIN32_WINNT_WIN8
114#define _WIN32_WINNT_WIN8 0x0602 /* Windows 8 */
115#endif
116#ifndef _WIN32_WINNT_WINBLUE
117#define _WIN32_WINNT_WINBLUE 0x0603 /* Windows 8.1 */
118#endif
119#ifndef _WIN32_WINNT_WINTHRESHOLD
120#define _WIN32_WINNT_WINTHRESHOLD 0x0A00 /* Windows 10 */
121#endif
122#ifndef _WIN32_WINNT_WIN10
123#define _WIN32_WINNT_WIN10 0x0A00 /* Windows 10 */
124#endif
125
126#endif /* HEADER_CURL_SETUP_WIN32_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette