dxdiagn: Fix DxDiag_DirectXFiles container to have child sub containers.
[wine/multimedia.git] / include / msvcrt / crtdefs.h
blob7234c1d9b6dd00b060b42a3b4bfd61bfde3fb0c7
1 /*
2 * CRT definitions
4 * Copyright 2000 Francois Gouget.
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.
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.
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
21 #ifndef __WINE_USE_MSVCRT
22 #define __WINE_USE_MSVCRT
23 #endif
25 #if defined(__x86_64__) && !defined(_WIN64)
26 #define _WIN64
27 #endif
29 #if !defined(_MSC_VER) && !defined(__int64)
30 # if defined(_WIN64) && !defined(__MINGW64__)
31 # define __int64 long
32 # else
33 # define __int64 long long
34 # endif
35 #endif
37 #ifndef __stdcall
38 # ifdef __i386__
39 # ifdef __GNUC__
40 # ifdef __APPLE__ /* Mac OS X uses a 16-byte aligned stack and not a 4-byte one */
41 # define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
42 # else
43 # define __stdcall __attribute__((__stdcall__))
44 # endif
45 # elif defined(_MSC_VER)
46 /* Nothing needs to be done. __stdcall already exists */
47 # else
48 # error You need to define __stdcall for your compiler
49 # endif
50 # elif defined(__x86_64__) && defined (__GNUC__)
51 # define __stdcall __attribute__((ms_abi))
52 # else
53 # define __stdcall
54 # endif
55 #endif /* __stdcall */
57 #ifndef __cdecl
58 # if defined(__i386__) && defined(__GNUC__)
59 # ifdef __APPLE__ /* Mac OS X uses 16-byte aligned stack and not a 4-byte one */
60 # define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
61 # else
62 # define __cdecl __attribute__((__cdecl__))
63 # endif
64 # elif defined(__x86_64__) && defined (__GNUC__)
65 # define __cdecl __attribute__((ms_abi))
66 # elif !defined(_MSC_VER)
67 # define __cdecl
68 # endif
69 #endif /* __cdecl */
71 #ifndef _INTPTR_T_DEFINED
72 #ifdef _WIN64
73 typedef __int64 intptr_t;
74 #else
75 typedef int intptr_t;
76 #endif
77 #define _INTPTR_T_DEFINED
78 #endif
80 #ifndef _UINTPTR_T_DEFINED
81 #ifdef _WIN64
82 typedef unsigned __int64 uintptr_t;
83 #else
84 typedef unsigned int uintptr_t;
85 #endif
86 #define _UINTPTR_T_DEFINED
87 #endif
89 #ifndef _PTRDIFF_T_DEFINED
90 #ifdef _WIN64
91 typedef __int64 ptrdiff_t;
92 #else
93 typedef int ptrdiff_t;
94 #endif
95 #define _PTRDIFF_T_DEFINED
96 #endif
98 #ifndef _SIZE_T_DEFINED
99 #ifdef _WIN64
100 typedef unsigned __int64 size_t;
101 #else
102 typedef unsigned int size_t;
103 #endif
104 #define _SIZE_T_DEFINED
105 #endif
107 #ifndef _TIME_T_DEFINED
108 typedef long time_t;
109 #define _TIME_T_DEFINED
110 #endif
112 #ifndef _TIME32_T_DEFINED
113 typedef long __time32_t;
114 #define _TIME32_T_DEFINED
115 #endif
117 #ifndef _TIME64_T_DEFINED
118 typedef __int64 __time64_t;
119 #define _TIME64_T_DEFINED
120 #endif
122 #ifndef _WCHAR_T_DEFINED
123 #ifndef __cplusplus
124 typedef unsigned short wchar_t;
125 #endif
126 #define _WCHAR_T_DEFINED
127 #endif
129 #ifndef _WCTYPE_T_DEFINED
130 typedef unsigned short wint_t;
131 typedef unsigned short wctype_t;
132 #define _WCTYPE_T_DEFINED
133 #endif