30 #define _VCRT_DEFINED_CRTIMP
31 #if defined CRTDLL && defined _CRTBLD
32 #define _CRTIMP __declspec(dllexport)
35 #define _CRTIMP __declspec(dllimport)
51 #if defined __cplusplus
53 #define _CRT_BEGIN_C_HEADER \
54 __pragma(pack(push, _CRT_PACKING)) \
57 #define _CRT_END_C_HEADER \
63 #define _CRT_BEGIN_C_HEADER \
64 cpp_quote("__pragma(pack(push, _CRT_PACKING))") \
65 cpp_quote("extern \"C\" {")
67 #define _CRT_END_C_HEADER \
69 cpp_quote("__pragma(pack(pop))")
73 #define _CRT_BEGIN_C_HEADER \
74 __pragma(pack(push, _CRT_PACKING))
76 #define _CRT_END_C_HEADER \
85 #ifndef _HAS_EXCEPTIONS
86 #define _HAS_EXCEPTIONS 1 // Predefine as 0 to disable exceptions
91 #define _CRT_STRINGIZE_(x) #x
92 #define _CRT_STRINGIZE(x) _CRT_STRINGIZE_(x)
94 #define _CRT_WIDE_(s) L ## s
95 #define _CRT_WIDE(s) _CRT_WIDE_(s)
97 #define _CRT_CONCATENATE_(a, b) a ## b
98 #define _CRT_CONCATENATE(a, b) _CRT_CONCATENATE_(a, b)
100 #define _CRT_UNPARENTHESIZE_(...) __VA_ARGS__
101 #define _CRT_UNPARENTHESIZE(...) _CRT_UNPARENTHESIZE_ __VA_ARGS__
106 #if defined _CRTIMP && !defined _VCRT_DEFINED_CRTIMP
107 #define _VCRTIMP _CRTIMP
108 #elif defined _VCRT_BUILD && defined CRTDLL
109 #define _VCRTIMP __declspec(dllexport)
110 #elif defined _CORECRT_BUILD
113 #define _VCRTIMP __declspec(dllimport)
120 #if defined MRTDLL && defined _CRTBLD
121 #if !defined _M_CEE_PURE
122 #define _MRTIMP __declspec(dllexport)
127 #define _MRTIMP __declspec(dllimport)
134 #define _VCRTIMP_PURE
135 #elif (defined _VCRT_BUILD || defined _CRTBLD) && defined MRTDLL
136 #define _VCRTIMP_PURE
138 #define _VCRTIMP_PURE _VCRTIMP
142 #if defined _M_CEE_PURE || defined MRTDLL
143 #define __CLRCALL_OR_CDECL __clrcall
144 #define __CLR_OR_THIS_CALL __clrcall
146 #define __CLRCALL_OR_CDECL __cdecl
147 #define __CLR_OR_THIS_CALL
151 #define __CLRCALL_PURE_OR_CDECL __clrcall
153 #define __CLRCALL_PURE_OR_CDECL __cdecl
156 #define __CRTDECL __CLRCALL_PURE_OR_CDECL
159 #define _VCRT_NOALIAS __declspec(noalias)
160 #define _VCRT_RESTRICT __declspec(restrict)
162 #if !defined _MSC_VER || _MSC_VER >= 1900
163 #define _VCRT_ALLOCATOR __declspec(allocator)
165 #define _VCRT_ALLOCATOR
168 #if defined _M_CEE && defined _M_X64
169 #define _VCRT_JIT_INTRINSIC __declspec(jitintrinsic)
171 #define _VCRT_JIT_INTRINSIC
175 #define _VCRT_ALIGN(x)
177 #define _VCRT_ALIGN(x) __declspec(align(x))
180 #ifndef _CONST_RETURN
182 #define _CRT_CONST_CORRECT_OVERLOADS
183 #define _CONST_RETURN const
185 #define _CONST_RETURN
190 #define _WConst_return _CONST_RETURN
194 typedef unsigned __int64
size_t;
203 #if defined __cplusplus
214 #ifndef _SIZE_T_DEFINED
215 #define _SIZE_T_DEFINED
218 #ifndef _PTRDIFF_T_DEFINED
219 #define _PTRDIFF_T_DEFINED
222 #ifndef _INTPTR_T_DEFINED
223 #define _INTPTR_T_DEFINED
227 #ifndef _WCHAR_T_DEFINED
228 #define _WCHAR_T_DEFINED
236 #define NULL ((void *)0)
240 #if defined _M_X64 || defined _M_ARM || defined _M_ARM64
241 #define _UNALIGNED __unaligned
249 template <
typename _CountofType,
size_t _SizeOfArray>
250 char (*__countof_helper(
_UNALIGNED _CountofType (&_Array)[_SizeOfArray]))[_SizeOfArray];
252 #define __crt_countof(_Array) (sizeof(*__countof_helper(_Array)) + 0)
255 #define __crt_countof(_Array) (sizeof(_Array) / sizeof(_Array[0]))
259 #define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
261 #if defined _CRT_SECURE_NO_DEPRECATE && !defined _CRT_SECURE_NO_WARNINGS
262 #define _CRT_SECURE_NO_WARNINGS
265 #ifndef _CRT_INSECURE_DEPRECATE
266 #ifdef _CRT_SECURE_NO_WARNINGS
267 #define _CRT_INSECURE_DEPRECATE(_Replacement)
269 #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
270 "This function or variable may be unsafe. Consider using " \
272 " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " \
273 "See online help for details.")
277 #if defined _CRT_SECURE_DEPRECATE_MEMORY && !defined _CRT_SECURE_WARNINGS_MEMORY
278 #define _CRT_SECURE_WARNINGS_MEMORY
281 #ifndef _CRT_INSECURE_DEPRECATE_MEMORY
282 #ifndef _CRT_SECURE_WARNINGS_MEMORY
283 #define _CRT_INSECURE_DEPRECATE_MEMORY(_Replacement)
285 #define _CRT_INSECURE_DEPRECATE_MEMORY(_Replacement) \
286 _CRT_INSECURE_DEPRECATE(_Replacement)
292 #define _CRT_WARNING(description) \
293 message("" __FILE__ "(" _CRT_STRINGIZE(__LINE__) ") : warning CRT0000 : " _CRT_STRINGIZE(description))
297 #if !defined _M_CEE && !defined __midl
312 #define __vcrt_malloc_normal(_Size) malloc(_Size)
313 #define __vcrt_calloc_normal(_Count, _Size) calloc(_Count, _Size)
314 #define __vcrt_free_normal(_Memory) free(_Memory)
319 #endif // _VCRUNTIME_H
_Bool __vcrt_bool
Definition: vcruntime.h:210
uintptr_t __security_cookie
#define _UNALIGNED
Definition: vcruntime.h:243
__declspec(noreturn) void __cdecl __report_gsfailure(_In_ uintptr_t _StackCookie)
Cancels the currently executing task. This function can be called from within the body of a task to a...
Definition: ppltasks.h:131
void __cdecl __security_check_cookie(_In_ uintptr_t _StackCookie)
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:73
int ptrdiff_t
Definition: vcruntime.h:199
unsigned int uintptr_t
Definition: vadefs.h:30
#define _In_
Definition: sal.h:305
unsigned int size_t
Definition: vcruntime.h:198
int intptr_t
Definition: vcruntime.h:200
unsigned short wchar_t
Definition: vcruntime.h:229
#define _CRT_END_C_HEADER
Definition: vcruntime.h:76
_CRT_BEGIN_C_HEADER typedef void(__CRTDECL *unexpected_handler)()
void __cdecl __security_init_cookie(void)