VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/msvcrt/crtdefs.h@ 19678

最後變更 在這個檔案從19678是 19678,由 vboxsync 提交於 16 年 前

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • 屬性 svn:eol-style 設為 native
檔案大小: 4.1 KB
 
1/*
2 * CRT definitions
3 *
4 * Copyright 2000 Francois Gouget.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21/*
22 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
23 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
24 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
25 * a choice of LGPL license versions is made available with the language indicating
26 * that LGPLv2 or any later version may be used, or where a choice of which version
27 * of the LGPL is applied is otherwise unspecified.
28 */
29
30#ifndef __WINE_USE_MSVCRT
31#define __WINE_USE_MSVCRT
32#endif
33
34#if defined(__x86_64__) && !defined(_WIN64)
35#define _WIN64
36#endif
37
38#if !defined(_MSC_VER) && !defined(__int64)
39# if defined(_WIN64) && !defined(__MINGW64__)
40# define __int64 long
41# else
42# define __int64 long long
43# endif
44#endif
45
46#ifndef __stdcall
47# ifdef __i386__
48# ifdef __GNUC__
49# ifdef __APPLE__ /* Mac OS X uses a 16-byte aligned stack and not a 4-byte one */
50# define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
51# else
52# define __stdcall __attribute__((__stdcall__))
53# endif
54# elif defined(_MSC_VER)
55 /* Nothing needs to be done. __stdcall already exists */
56# else
57# error You need to define __stdcall for your compiler
58# endif
59# elif defined(__x86_64__) && defined (__GNUC__)
60# define __stdcall __attribute__((ms_abi))
61# else
62# define __stdcall
63# endif
64#endif /* __stdcall */
65
66#ifndef __cdecl
67# if defined(__i386__) && defined(__GNUC__)
68# ifdef __APPLE__ /* Mac OS X uses 16-byte aligned stack and not a 4-byte one */
69# define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
70# else
71# define __cdecl __attribute__((__cdecl__))
72# endif
73# elif defined(__x86_64__) && defined (__GNUC__)
74# define __cdecl __attribute__((ms_abi))
75# elif !defined(_MSC_VER)
76# define __cdecl
77# endif
78#endif /* __cdecl */
79
80#ifndef __ms_va_list
81# if defined(__x86_64__) && defined (__GNUC__)
82# define __ms_va_list __builtin_ms_va_list
83# define __ms_va_start(list,arg) __builtin_ms_va_start(list,arg)
84# define __ms_va_end(list) __builtin_ms_va_end(list)
85# else
86# define __ms_va_list va_list
87# define __ms_va_start(list,arg) va_start(list,arg)
88# define __ms_va_end(list) va_end(list)
89# endif
90#endif
91
92#ifndef _INTPTR_T_DEFINED
93#ifdef _WIN64
94typedef __int64 intptr_t;
95#else
96typedef int intptr_t;
97#endif
98#define _INTPTR_T_DEFINED
99#endif
100
101#ifndef _UINTPTR_T_DEFINED
102#ifdef _WIN64
103typedef unsigned __int64 uintptr_t;
104#else
105typedef unsigned int uintptr_t;
106#endif
107#define _UINTPTR_T_DEFINED
108#endif
109
110#ifndef _PTRDIFF_T_DEFINED
111#ifdef _WIN64
112typedef __int64 ptrdiff_t;
113#else
114typedef int ptrdiff_t;
115#endif
116#define _PTRDIFF_T_DEFINED
117#endif
118
119#ifndef _SIZE_T_DEFINED
120#ifdef _WIN64
121typedef unsigned __int64 size_t;
122#else
123typedef unsigned int size_t;
124#endif
125#define _SIZE_T_DEFINED
126#endif
127
128#ifndef _TIME32_T_DEFINED
129typedef long __time32_t;
130#define _TIME32_T_DEFINED
131#endif
132
133#ifndef _TIME64_T_DEFINED
134typedef __int64 __time64_t;
135#define _TIME64_T_DEFINED
136#endif
137
138#ifndef _TIME_T_DEFINED
139#ifdef _WIN64
140typedef __time64_t time_t;
141#else
142typedef __time32_t time_t;
143#endif
144#define _TIME_T_DEFINED
145#endif
146
147#ifndef _WCHAR_T_DEFINED
148#ifndef __cplusplus
149typedef unsigned short wchar_t;
150#endif
151#define _WCHAR_T_DEFINED
152#endif
153
154#ifndef _WCTYPE_T_DEFINED
155typedef unsigned short wint_t;
156typedef unsigned short wctype_t;
157#define _WCTYPE_T_DEFINED
158#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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