VirtualBox

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

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

crOpenGL: update to wine 1.1.26

  • 屬性 svn:eol-style 設為 native
檔案大小: 4.4 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 _MSVCRT_LONG_DEFINED
93#define _MSVCRT_LONG_DEFINED
94/* we need 32-bit longs even on 64-bit */
95typedef int __msvcrt_long;
96typedef unsigned int __msvcrt_ulong;
97#endif
98
99#ifndef _INTPTR_T_DEFINED
100#ifdef _WIN64
101typedef __int64 intptr_t;
102#else
103typedef int intptr_t;
104#endif
105#define _INTPTR_T_DEFINED
106#endif
107
108#ifndef _UINTPTR_T_DEFINED
109#ifdef _WIN64
110typedef unsigned __int64 uintptr_t;
111#else
112typedef unsigned int uintptr_t;
113#endif
114#define _UINTPTR_T_DEFINED
115#endif
116
117#ifndef _PTRDIFF_T_DEFINED
118#ifdef _WIN64
119typedef __int64 ptrdiff_t;
120#else
121typedef int ptrdiff_t;
122#endif
123#define _PTRDIFF_T_DEFINED
124#endif
125
126#ifndef _SIZE_T_DEFINED
127#ifdef _WIN64
128typedef unsigned __int64 size_t;
129#else
130typedef unsigned int size_t;
131#endif
132#define _SIZE_T_DEFINED
133#endif
134
135#ifndef _TIME32_T_DEFINED
136typedef __msvcrt_long __time32_t;
137#define _TIME32_T_DEFINED
138#endif
139
140#ifndef _TIME64_T_DEFINED
141typedef __int64 __time64_t;
142#define _TIME64_T_DEFINED
143#endif
144
145#ifdef _USE_32BIT_TIME_T
146# ifdef _WIN64
147# error You cannot use 32-bit time_t in Win64
148# endif
149#elif !defined(_WIN64)
150# define _USE_32BIT_TIME_T
151#endif
152
153#ifndef _TIME_T_DEFINED
154#ifdef _USE_32BIT_TIME_T
155typedef __time32_t time_t;
156#else
157typedef __time64_t time_t;
158#endif
159#define _TIME_T_DEFINED
160#endif
161
162#ifndef _WCHAR_T_DEFINED
163#ifndef __cplusplus
164typedef unsigned short wchar_t;
165#endif
166#define _WCHAR_T_DEFINED
167#endif
168
169#ifndef _WCTYPE_T_DEFINED
170typedef unsigned short wint_t;
171typedef unsigned short wctype_t;
172#define _WCTYPE_T_DEFINED
173#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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