2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
10 #error Only Win32 target is supported!
16 #define _CRT_PACKING 8
17 #pragma pack(push,_CRT_PACKING)
23 #ifndef _UINTPTR_T_DEFINED
24 #define _UINTPTR_T_DEFINED
25 #ifndef __uintptr_t_defined
26 #define __uintptr_t_defined
29 #if defined(__GNUC__) && defined(__STRICT_ANSI__)
30 typedef unsigned int uintptr_t __attribute__ ((mode (DI
)));
32 typedef unsigned __int64
uintptr_t;
35 typedef unsigned long uintptr_t;
40 #ifndef __GNUC_VA_LIST
41 #define __GNUC_VA_LIST
42 typedef __builtin_va_list __gnuc_va_list
;
45 #ifndef _VA_LIST_DEFINED
46 #define _VA_LIST_DEFINED
47 typedef __gnuc_va_list
va_list;
51 #define _ADDRESSOF(v) (&reinterpret_cast<const char &>(v))
53 #define _ADDRESSOF(v) (&(v))
58 #define _SLOTSIZEOF(t) ((sizeof(t) + _VA_ALIGN - 1) & ~(_VA_ALIGN - 1))
60 #define _VA_STRUCT_ALIGN 16
62 #define _ALIGNOF(ap) ((((ap)+_VA_STRUCT_ALIGN - 1) & ~(_VA_STRUCT_ALIGN -1)) - (ap))
63 #define _APALIGN(t,ap) (__alignof(t) > 8 ? _ALIGNOF((uintptr_t) ap) : 0)
65 #define _SLOTSIZEOF(t) (sizeof(t))
66 #define _APALIGN(t,ap) (__alignof(t))
69 #if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L
70 #define va_copy(d,s) __builtin_va_copy(d,s)
72 #define __va_copy(d,s) __builtin_va_copy(d,s)
74 #define _INTSIZEOF(n) ((sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1))
76 #define _crt_va_start(v,l) __builtin_va_start(v,l)
77 #define _crt_va_arg(v,l) __builtin_va_arg(v,l)
78 #define _crt_va_end(v) __builtin_va_end(v)