Mercurial > games > semicongine
comparison fuhtark_test/include/_mingw.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 1 /* | |
| 2 * _mingw.h | |
| 3 * | |
| 4 * This file is for TinyCC and not part of the Mingw32 package. | |
| 5 * | |
| 6 * THIS SOFTWARE IS NOT COPYRIGHTED | |
| 7 * | |
| 8 * This source code is offered for use in the public domain. You may | |
| 9 * use, modify or distribute it freely. | |
| 10 * | |
| 11 * This code is distributed in the hope that it will be useful but | |
| 12 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY | |
| 13 * DISCLAIMED. This includes but is not limited to warranties of | |
| 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 15 * | |
| 16 */ | |
| 17 | |
| 18 #ifndef __MINGW_H | |
| 19 #define __MINGW_H | |
| 20 | |
| 21 /* some winapi files define these before including _mingw.h --> */ | |
| 22 #undef __cdecl | |
| 23 #undef _X86_ | |
| 24 #undef WIN32 | |
| 25 /* <-- */ | |
| 26 | |
| 27 #include <stddef.h> | |
| 28 #include <stdarg.h> | |
| 29 | |
| 30 #define __int8 char | |
| 31 #define __int16 short | |
| 32 #define __int32 int | |
| 33 #define __int64 long long | |
| 34 #define _HAVE_INT64 | |
| 35 | |
| 36 #define __cdecl | |
| 37 #define __declspec(x) __attribute__((x)) | |
| 38 #define __unaligned __attribute__((packed)) | |
| 39 #define __fastcall __attribute__((fastcall)) | |
| 40 | |
| 41 #define __MSVCRT__ 1 | |
| 42 #undef _MSVCRT_ | |
| 43 #define __MINGW_IMPORT extern __declspec(dllimport) | |
| 44 #define __MINGW_ATTRIB_NORETURN | |
| 45 #define __MINGW_ATTRIB_CONST | |
| 46 #define __MINGW_ATTRIB_DEPRECATED | |
| 47 #define __MINGW_ATTRIB_MALLOC | |
| 48 #define __MINGW_ATTRIB_PURE | |
| 49 #define __MINGW_ATTRIB_NONNULL(arg) | |
| 50 #define __MINGW_NOTHROW | |
| 51 #define __GNUC_VA_LIST | |
| 52 | |
| 53 #define _CRTIMP extern | |
| 54 #define __CRT_INLINE extern __inline__ | |
| 55 | |
| 56 #define _CRT_ALIGN(x) __attribute__((aligned(x))) | |
| 57 #define DECLSPEC_ALIGN(x) __attribute__((aligned(x))) | |
| 58 #define _CRT_PACKING 8 | |
| 59 #define __CRT_UNALIGNED | |
| 60 #define _CONST_RETURN | |
| 61 | |
| 62 #ifndef _TRUNCATE | |
| 63 #define _TRUNCATE ((size_t)-1) | |
| 64 #endif | |
| 65 | |
| 66 #define __CRT_STRINGIZE(_Value) #_Value | |
| 67 #define _CRT_STRINGIZE(_Value) __CRT_STRINGIZE(_Value) | |
| 68 #define __CRT_WIDE(_String) L ## _String | |
| 69 #define _CRT_WIDE(_String) __CRT_WIDE(_String) | |
| 70 | |
| 71 #ifdef _WIN64 | |
| 72 #define __stdcall | |
| 73 #define _AMD64_ 1 | |
| 74 #define __x86_64 1 | |
| 75 #define _M_X64 100 /* Visual Studio */ | |
| 76 #define _M_AMD64 100 /* Visual Studio */ | |
| 77 #define USE_MINGW_SETJMP_TWO_ARGS | |
| 78 #define mingw_getsp tinyc_getbp | |
| 79 #define __TRY__ | |
| 80 #else | |
| 81 #define __stdcall __attribute__((__stdcall__)) | |
| 82 #define _X86_ 1 | |
| 83 #define _M_IX86 300 /* Visual Studio */ | |
| 84 #define WIN32 1 | |
| 85 #define _USE_32BIT_TIME_T | |
| 86 #ifdef __arm__ | |
| 87 #define __TRY__ | |
| 88 #else | |
| 89 #define __TRY__ void __try__(void**), *_sehrec[6]; __try__(_sehrec); | |
| 90 #endif | |
| 91 #endif | |
| 92 | |
| 93 /* in stddef.h */ | |
| 94 #define _SIZE_T_DEFINED | |
| 95 #define _SSIZE_T_DEFINED | |
| 96 #define _PTRDIFF_T_DEFINED | |
| 97 #define _WCHAR_T_DEFINED | |
| 98 #define _UINTPTR_T_DEFINED | |
| 99 #define _INTPTR_T_DEFINED | |
| 100 #define _INTEGRAL_MAX_BITS 64 | |
| 101 | |
| 102 #ifndef _TIME32_T_DEFINED | |
| 103 #define _TIME32_T_DEFINED | |
| 104 typedef long __time32_t; | |
| 105 #endif | |
| 106 | |
| 107 #ifndef _TIME64_T_DEFINED | |
| 108 #define _TIME64_T_DEFINED | |
| 109 typedef long long __time64_t; | |
| 110 #endif | |
| 111 | |
| 112 #ifndef _TIME_T_DEFINED | |
| 113 #define _TIME_T_DEFINED | |
| 114 #ifdef _USE_32BIT_TIME_T | |
| 115 typedef __time32_t time_t; | |
| 116 #else | |
| 117 typedef __time64_t time_t; | |
| 118 #endif | |
| 119 #endif | |
| 120 | |
| 121 #ifndef _WCTYPE_T_DEFINED | |
| 122 #define _WCTYPE_T_DEFINED | |
| 123 typedef wchar_t wctype_t; | |
| 124 #endif | |
| 125 | |
| 126 #ifndef _WINT_T | |
| 127 #define _WINT_T | |
| 128 typedef __WINT_TYPE__ wint_t; | |
| 129 #endif | |
| 130 | |
| 131 typedef int errno_t; | |
| 132 #define _ERRCODE_DEFINED | |
| 133 | |
| 134 typedef struct threadlocaleinfostruct *pthreadlocinfo; | |
| 135 typedef struct threadmbcinfostruct *pthreadmbcinfo; | |
| 136 typedef struct localeinfo_struct _locale_tstruct,*_locale_t; | |
| 137 | |
| 138 /* for winapi */ | |
| 139 #define _ANONYMOUS_UNION | |
| 140 #define _ANONYMOUS_STRUCT | |
| 141 #define DECLSPEC_NORETURN | |
| 142 #define DECLARE_STDCALL_P(type) __stdcall type | |
| 143 #define NOSERVICE 1 | |
| 144 #define NOMCX 1 | |
| 145 #define NOIME 1 | |
| 146 #define __INTRIN_H_ | |
| 147 #ifndef DUMMYUNIONNAME | |
| 148 # define DUMMYUNIONNAME | |
| 149 # define DUMMYUNIONNAME1 | |
| 150 # define DUMMYUNIONNAME2 | |
| 151 # define DUMMYUNIONNAME3 | |
| 152 # define DUMMYUNIONNAME4 | |
| 153 # define DUMMYUNIONNAME5 | |
| 154 #endif | |
| 155 #ifndef DUMMYSTRUCTNAME | |
| 156 # define DUMMYSTRUCTNAME | |
| 157 #endif | |
| 158 #ifndef WINVER | |
| 159 # define WINVER 0x0502 | |
| 160 #endif | |
| 161 #ifndef _WIN32_WINNT | |
| 162 # define _WIN32_WINNT 0x502 | |
| 163 #endif | |
| 164 | |
| 165 #define __C89_NAMELESS | |
| 166 #define __MINGW_EXTENSION | |
| 167 #define WINAPI_FAMILY_PARTITION(X) 1 | |
| 168 #define MINGW_HAS_SECURE_API | |
| 169 | |
| 170 #endif /* __MINGW_H */ |
