@xnetx/tinyc-native-x86_64-w64-mingw32 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/natives/x86_64-w64-mingw32/toolchain/x86_64-w64-mingw32/tinyc.exe +0 -0
  2. package/package.json +1 -1
  3. package/sysroot/x86_64-w64-mingw32/include/tinyc_io.h +131 -131
  4. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/_mingw.h +171 -171
  5. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/arm_neon.h +3585 -0
  6. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/assert.h +62 -62
  7. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx2intrin.h +93 -0
  8. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512bwintrin.h +128 -0
  9. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512cdintrin.h +31 -0
  10. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512dqintrin.h +123 -0
  11. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512fintrin.h +1075 -0
  12. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vbmiintrin.h +30 -0
  13. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vlintrin.h +1633 -0
  14. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vnniintrin.h +33 -0
  15. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avxintrin.h +675 -0
  16. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/conio.h +409 -409
  17. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/ctype.h +281 -281
  18. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dir.h +31 -31
  19. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/direct.h +68 -68
  20. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dirent.h +135 -135
  21. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dos.h +55 -55
  22. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/emmintrin.h +213 -0
  23. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/errno.h +75 -75
  24. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/excpt.h +123 -123
  25. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/f16cintrin.h +29 -0
  26. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fcntl.h +52 -52
  27. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fenv.h +108 -108
  28. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/float.h +75 -75
  29. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fmaintrin.h +141 -0
  30. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/immintrin.h +21 -0
  31. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/inttypes.h +297 -297
  32. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/io.h +418 -418
  33. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/iso646.h +36 -36
  34. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/limits.h +116 -116
  35. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/locale.h +91 -91
  36. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/malloc.h +181 -181
  37. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/math.h +497 -497
  38. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/mem.h +13 -13
  39. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/memory.h +40 -40
  40. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/process.h +176 -176
  41. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/riscv_vector.h +12334 -0
  42. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/conio_s.h +42 -42
  43. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/crtdbg_s.h +19 -19
  44. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/io_s.h +33 -33
  45. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/mbstring_s.h +52 -52
  46. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/search_s.h +25 -25
  47. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdio_s.h +145 -145
  48. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdlib_s.h +67 -67
  49. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stralign_s.h +30 -30
  50. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/string_s.h +41 -41
  51. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/sys/timeb_s.h +34 -34
  52. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/tchar_s.h +266 -266
  53. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/time_s.h +61 -61
  54. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/wchar_s.h +128 -128
  55. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/setjmp.h +199 -199
  56. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/share.h +28 -28
  57. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/signal.h +63 -63
  58. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/smmintrin.h +74 -0
  59. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdalign.h +16 -16
  60. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdarg.h +14 -14
  61. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdatomic.h +171 -171
  62. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdbool.h +11 -11
  63. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stddef.h +39 -39
  64. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdint.h +212 -212
  65. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdio.h +429 -429
  66. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdlib.h +606 -606
  67. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdnoreturn.h +7 -7
  68. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/string.h +164 -164
  69. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/fcntl.h +13 -13
  70. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/file.h +14 -14
  71. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/locking.h +30 -30
  72. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/stat.h +290 -290
  73. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/time.h +69 -69
  74. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/timeb.h +133 -133
  75. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/types.h +123 -123
  76. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/unistd.h +14 -14
  77. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/utime.h +146 -146
  78. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcc/tcc_libm.h +618 -618
  79. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tccdefs.h +338 -338
  80. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcclib.h +82 -82
  81. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tchar.h +1102 -1102
  82. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tgmath.h +89 -89
  83. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/time.h +287 -287
  84. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tmmintrin.h +19 -0
  85. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/uchar.h +33 -33
  86. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/unistd.h +1 -1
  87. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/vadefs.h +11 -11
  88. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/values.h +4 -4
  89. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/varargs.h +12 -12
  90. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wchar.h +873 -873
  91. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wctype.h +172 -172
  92. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetsd.h +149 -149
  93. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetyps.h +85 -85
  94. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/guiddef.h +156 -156
  95. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/poppack.h +8 -8
  96. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack1.h +8 -8
  97. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack2.h +8 -8
  98. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack4.h +8 -8
  99. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack8.h +8 -8
  100. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/qos.h +72 -72
  101. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/shellapi.h +59 -59
  102. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winbase.h +2966 -2966
  103. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wincon.h +309 -309
  104. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windef.h +293 -293
  105. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windows.h +127 -127
  106. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winerror.h +3166 -3166
  107. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wingdi.h +4080 -4080
  108. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnls.h +778 -778
  109. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnt.h +5994 -5994
  110. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winreg.h +272 -272
  111. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winsock2.h +1474 -1474
  112. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winuser.h +5652 -5652
  113. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winver.h +160 -160
  114. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2ipdef.h +21 -21
  115. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2tcpip.h +391 -391
  116. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/xmmintrin.h +170 -0
  117. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/gdi32.def +337 -337
  118. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/kernel32.def +776 -776
  119. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/libtcc1.a +0 -0
  120. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/msvcrt.def +1320 -1320
  121. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/runmain.o +0 -0
  122. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/user32.def +658 -658
  123. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/ws2_32.def +198 -198
  124. package/sysroot/x86_64-w64-mingw32/manifest.json +1 -1
@@ -1,606 +1,606 @@
1
- /**
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.
5
- */
6
- #ifndef _INC_STDLIB
7
- #define _INC_STDLIB
8
-
9
- #include <_mingw.h>
10
- #include <limits.h>
11
-
12
- #pragma pack(push,_CRT_PACKING)
13
-
14
- #ifdef __cplusplus
15
- extern "C" {
16
- #endif
17
-
18
- #ifndef NULL
19
- #ifdef __cplusplus
20
- #define NULL 0
21
- #else
22
- #define NULL ((void *)0)
23
- #endif
24
- #endif
25
-
26
- #define EXIT_SUCCESS 0
27
- #define EXIT_FAILURE 1
28
-
29
- #ifndef _ONEXIT_T_DEFINED
30
- #define _ONEXIT_T_DEFINED
31
-
32
- typedef int (__cdecl *_onexit_t)(void);
33
-
34
- #ifndef NO_OLDNAMES
35
- #define onexit_t _onexit_t
36
- #endif
37
- #endif
38
-
39
- #ifndef _DIV_T_DEFINED
40
- #define _DIV_T_DEFINED
41
-
42
- typedef struct _div_t {
43
- int quot;
44
- int rem;
45
- } div_t;
46
-
47
- typedef struct _ldiv_t {
48
- long quot;
49
- long rem;
50
- } ldiv_t;
51
- #endif
52
-
53
- #ifndef _CRT_DOUBLE_DEC
54
- #define _CRT_DOUBLE_DEC
55
-
56
- #pragma pack(4)
57
- typedef struct {
58
- unsigned char ld[10];
59
- } _LDOUBLE;
60
- #pragma pack()
61
-
62
- #define _PTR_LD(x) ((unsigned char *)(&(x)->ld))
63
-
64
- typedef struct {
65
- double x;
66
- } _CRT_DOUBLE;
67
-
68
- typedef struct {
69
- float f;
70
- } _CRT_FLOAT;
71
-
72
- #pragma push_macro("long")
73
- #undef long
74
-
75
- typedef struct {
76
- long double x;
77
- } _LONGDOUBLE;
78
-
79
- #pragma pop_macro("long")
80
-
81
- #pragma pack(4)
82
- typedef struct {
83
- unsigned char ld12[12];
84
- } _LDBL12;
85
- #pragma pack()
86
- #endif
87
-
88
- #define RAND_MAX 0x7fff
89
-
90
- #ifndef MB_CUR_MAX
91
- #define MB_CUR_MAX ___mb_cur_max_func()
92
- #ifndef __mb_cur_max
93
- #ifdef _MSVCRT_
94
- extern int __mb_cur_max;
95
- #else
96
- #define __mb_cur_max (*_imp____mb_cur_max)
97
- extern int *_imp____mb_cur_max;
98
- #endif
99
- #endif
100
- #ifdef _MSVCRT_
101
- extern int __mbcur_max;
102
- #define ___mb_cur_max_func() (__mb_cur_max)
103
- #else
104
- extern int* _imp____mbcur_max;
105
- #define ___mb_cur_max_func() (*_imp____mb_cur_max)
106
- #endif
107
- #endif
108
-
109
- #define __max(a,b) (((a) > (b)) ? (a) : (b))
110
- #define __min(a,b) (((a) < (b)) ? (a) : (b))
111
-
112
- #define _MAX_PATH 260
113
- #define _MAX_DRIVE 3
114
- #define _MAX_DIR 256
115
- #define _MAX_FNAME 256
116
- #define _MAX_EXT 256
117
-
118
- #define _OUT_TO_DEFAULT 0
119
- #define _OUT_TO_STDERR 1
120
- #define _OUT_TO_MSGBOX 2
121
- #define _REPORT_ERRMODE 3
122
-
123
- #define _WRITE_ABORT_MSG 0x1
124
- #define _CALL_REPORTFAULT 0x2
125
-
126
- #define _MAX_ENV 32767
127
-
128
- typedef void (__cdecl *_purecall_handler)(void);
129
-
130
- _CRTIMP _purecall_handler __cdecl _set_purecall_handler(_purecall_handler _Handler);
131
- _CRTIMP _purecall_handler __cdecl _get_purecall_handler(void);
132
-
133
- typedef void (__cdecl *_invalid_parameter_handler)(const wchar_t *,const wchar_t *,const wchar_t *,unsigned int,uintptr_t);
134
- _invalid_parameter_handler __cdecl _set_invalid_parameter_handler(_invalid_parameter_handler _Handler);
135
- _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(void);
136
-
137
- #ifndef _CRT_ERRNO_DEFINED
138
- #define _CRT_ERRNO_DEFINED
139
- _CRTIMP int *__cdecl _errno(void);
140
- #define errno (*_errno())
141
- errno_t __cdecl _set_errno(int _Value);
142
- errno_t __cdecl _get_errno(int *_Value);
143
- #endif
144
- _CRTIMP unsigned long *__cdecl __doserrno(void);
145
- #define _doserrno (*__doserrno())
146
- errno_t __cdecl _set_doserrno(unsigned long _Value);
147
- errno_t __cdecl _get_doserrno(unsigned long *_Value);
148
- #ifdef _MSVCRT_
149
- extern char *_sys_errlist[];
150
- extern int _sys_nerr;
151
- #else
152
- _CRTIMP char *_sys_errlist[1];
153
- _CRTIMP int _sys_nerr;
154
- #endif
155
- #if (defined(_X86_) && !defined(__x86_64))
156
- _CRTIMP int *__cdecl __p___argc(void);
157
- _CRTIMP char ***__cdecl __p___argv(void);
158
- _CRTIMP wchar_t ***__cdecl __p___wargv(void);
159
- _CRTIMP char ***__cdecl __p__environ(void);
160
- _CRTIMP wchar_t ***__cdecl __p__wenviron(void);
161
- _CRTIMP char **__cdecl __p__pgmptr(void);
162
- _CRTIMP wchar_t **__cdecl __p__wpgmptr(void);
163
- #endif
164
- #ifndef __argc
165
- #ifdef _MSVCRT_
166
- extern int __argc;
167
- #else
168
- #define __argc (*_imp____argc)
169
- extern int *_imp____argc;
170
- #endif
171
- #endif
172
- #ifndef __argv
173
- #ifdef _MSVCRT_
174
- extern char **__argv;
175
- #else
176
- #define __argv (*_imp____argv)
177
- extern char ***_imp____argv;
178
- #endif
179
- #endif
180
- #ifndef __wargv
181
- #ifdef _MSVCRT_
182
- extern wchar_t **__wargv;
183
- #else
184
- #define __wargv (*_imp____wargv)
185
- extern wchar_t ***_imp____wargv;
186
- #endif
187
- #endif
188
-
189
- #ifdef _POSIX_
190
- extern char **environ;
191
- #else
192
- #ifndef _environ
193
- #ifdef _MSVCRT_
194
- extern char **_environ;
195
- #else
196
- #define _environ (*_imp___environ)
197
- extern char ***_imp___environ;
198
- #endif
199
- #endif
200
-
201
- #ifndef _wenviron
202
- #ifdef _MSVCRT_
203
- extern wchar_t **_wenviron;
204
- #else
205
- #define _wenviron (*_imp___wenviron)
206
- extern wchar_t ***_imp___wenviron;
207
- #endif
208
- #endif
209
- #endif
210
-
211
- #if defined __aarch64__
212
- /* something does not work using those from msvcrt.dll */
213
- # undef __argc
214
- # undef __argv
215
- # undef __wargv
216
- # undef _wenviron
217
- # undef _environ
218
- extern int __argc;
219
- extern char **__argv;
220
- extern wchar_t **__wargv;
221
- extern char **_environ;
222
- extern wchar_t **_wenviron;
223
- #endif
224
-
225
- #ifndef _pgmptr
226
- #ifdef _MSVCRT_
227
- extern char *_pgmptr;
228
- #else
229
- #define _pgmptr (*_imp___pgmptr)
230
- extern char **_imp___pgmptr;
231
- #endif
232
- #endif
233
-
234
- #ifndef _wpgmptr
235
- #ifdef _MSVCRT_
236
- extern wchar_t *_wpgmptr;
237
- #else
238
- #define _wpgmptr (*_imp___wpgmptr)
239
- extern wchar_t **_imp___wpgmptr;
240
- #endif
241
- #endif
242
- errno_t __cdecl _get_pgmptr(char **_Value);
243
- errno_t __cdecl _get_wpgmptr(wchar_t **_Value);
244
- #ifndef _fmode
245
- #ifdef _MSVCRT_
246
- extern int _fmode;
247
- #else
248
- #define _fmode (*_imp___fmode)
249
- extern int *_imp___fmode;
250
- #endif
251
- #endif
252
- _CRTIMP errno_t __cdecl _set_fmode(int _Mode);
253
- _CRTIMP errno_t __cdecl _get_fmode(int *_PMode);
254
-
255
- #ifndef _osplatform
256
- #ifdef _MSVCRT_
257
- extern unsigned int _osplatform;
258
- #else
259
- #define _osplatform (*_imp___osplatform)
260
- extern unsigned int *_imp___osplatform;
261
- #endif
262
- #endif
263
-
264
- #ifndef _osver
265
- #ifdef _MSVCRT_
266
- extern unsigned int _osver;
267
- #else
268
- #define _osver (*_imp___osver)
269
- extern unsigned int *_imp___osver;
270
- #endif
271
- #endif
272
-
273
- #ifndef _winver
274
- #ifdef _MSVCRT_
275
- extern unsigned int _winver;
276
- #else
277
- #define _winver (*_imp___winver)
278
- extern unsigned int *_imp___winver;
279
- #endif
280
- #endif
281
-
282
- #ifndef _winmajor
283
- #ifdef _MSVCRT_
284
- extern unsigned int _winmajor;
285
- #else
286
- #define _winmajor (*_imp___winmajor)
287
- extern unsigned int *_imp___winmajor;
288
- #endif
289
- #endif
290
-
291
- #ifndef _winminor
292
- #ifdef _MSVCRT_
293
- extern unsigned int _winminor;
294
- #else
295
- #define _winminor (*_imp___winminor)
296
- extern unsigned int *_imp___winminor;
297
- #endif
298
- #endif
299
-
300
- errno_t __cdecl _get_osplatform(unsigned int *_Value);
301
- errno_t __cdecl _get_osver(unsigned int *_Value);
302
- errno_t __cdecl _get_winver(unsigned int *_Value);
303
- errno_t __cdecl _get_winmajor(unsigned int *_Value);
304
- errno_t __cdecl _get_winminor(unsigned int *_Value);
305
- #ifndef _countof
306
- #ifndef __cplusplus
307
- #define _countof(_Array) (sizeof(_Array) / sizeof(_Array[0]))
308
- #else
309
- extern "C++" {
310
- template <typename _CountofType,size_t _SizeOfArray> char (*__countof_helper(UNALIGNED _CountofType (&_Array)[_SizeOfArray]))[_SizeOfArray];
311
- #define _countof(_Array) sizeof(*__countof_helper(_Array))
312
- }
313
- #endif
314
- #endif
315
-
316
- #ifndef _CRT_TERMINATE_DEFINED
317
- #define _CRT_TERMINATE_DEFINED
318
- void __cdecl __MINGW_NOTHROW exit(int _Code) __MINGW_ATTRIB_NORETURN;
319
- _CRTIMP void __cdecl __MINGW_NOTHROW _exit(int _Code) __MINGW_ATTRIB_NORETURN;
320
- #if !defined __NO_ISOCEXT /* extern stub in static libmingwex.a */
321
- /* C99 function name */
322
- void __cdecl _Exit(int) __MINGW_ATTRIB_NORETURN;
323
- __CRT_INLINE __MINGW_ATTRIB_NORETURN void __cdecl _Exit(int status)
324
- { _exit(status); }
325
- #endif
326
-
327
- #pragma push_macro("abort")
328
- #undef abort
329
- void __cdecl __declspec(noreturn) abort(void);
330
- #pragma pop_macro("abort")
331
-
332
- #endif
333
-
334
- _CRTIMP unsigned int __cdecl _set_abort_behavior(unsigned int _Flags,unsigned int _Mask);
335
-
336
- #ifndef _CRT_ABS_DEFINED
337
- #define _CRT_ABS_DEFINED
338
- int __cdecl abs(int _X);
339
- long __cdecl labs(long _X);
340
- #endif
341
-
342
- #if _INTEGRAL_MAX_BITS >= 64
343
- __int64 __cdecl _abs64(__int64);
344
- #endif
345
- int __cdecl atexit(void (__cdecl *)(void));
346
- #ifndef _CRT_ATOF_DEFINED
347
- #define _CRT_ATOF_DEFINED
348
- double __cdecl atof(const char *_String);
349
- double __cdecl _atof_l(const char *_String,_locale_t _Locale);
350
- #endif
351
- int __cdecl atoi(const char *_Str);
352
- _CRTIMP int __cdecl _atoi_l(const char *_Str,_locale_t _Locale);
353
- long __cdecl atol(const char *_Str);
354
- _CRTIMP long __cdecl _atol_l(const char *_Str,_locale_t _Locale);
355
- #ifndef _CRT_ALGO_DEFINED
356
- #define _CRT_ALGO_DEFINED
357
- void *__cdecl bsearch(const void *_Key,const void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
358
- void __cdecl qsort(void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
359
- #endif
360
- unsigned short __cdecl _byteswap_ushort(unsigned short _Short);
361
- /*unsigned long __cdecl _byteswap_ulong (unsigned long _Long); */
362
- #if _INTEGRAL_MAX_BITS >= 64
363
- unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64 _Int64);
364
- #endif
365
- div_t __cdecl div(int _Numerator,int _Denominator);
366
- char *__cdecl getenv(const char *_VarName);
367
- _CRTIMP char *__cdecl _itoa(int _Value,char *_Dest,int _Radix);
368
- #if _INTEGRAL_MAX_BITS >= 64
369
- _CRTIMP char *__cdecl _i64toa(__int64 _Val,char *_DstBuf,int _Radix);
370
- _CRTIMP char *__cdecl _ui64toa(unsigned __int64 _Val,char *_DstBuf,int _Radix);
371
- _CRTIMP __int64 __cdecl _atoi64(const char *_String);
372
- _CRTIMP __int64 __cdecl _atoi64_l(const char *_String,_locale_t _Locale);
373
- _CRTIMP __int64 __cdecl _strtoi64(const char *_String,char **_EndPtr,int _Radix);
374
- _CRTIMP __int64 __cdecl _strtoi64_l(const char *_String,char **_EndPtr,int _Radix,_locale_t _Locale);
375
- _CRTIMP unsigned __int64 __cdecl _strtoui64(const char *_String,char **_EndPtr,int _Radix);
376
- _CRTIMP unsigned __int64 __cdecl _strtoui64_l(const char *_String,char **_EndPtr,int _Radix,_locale_t _Locale);
377
- #endif
378
- ldiv_t __cdecl ldiv(long _Numerator,long _Denominator);
379
- _CRTIMP char *__cdecl _ltoa(long _Value,char *_Dest,int _Radix);
380
- int __cdecl mblen(const char *_Ch,size_t _MaxCount);
381
- _CRTIMP int __cdecl _mblen_l(const char *_Ch,size_t _MaxCount,_locale_t _Locale);
382
- _CRTIMP size_t __cdecl _mbstrlen(const char *_Str);
383
- _CRTIMP size_t __cdecl _mbstrlen_l(const char *_Str,_locale_t _Locale);
384
- _CRTIMP size_t __cdecl _mbstrnlen(const char *_Str,size_t _MaxCount);
385
- _CRTIMP size_t __cdecl _mbstrnlen_l(const char *_Str,size_t _MaxCount,_locale_t _Locale);
386
- int __cdecl mbtowc(wchar_t *_DstCh,const char *_SrcCh,size_t _SrcSizeInBytes);
387
- _CRTIMP int __cdecl _mbtowc_l(wchar_t *_DstCh,const char *_SrcCh,size_t _SrcSizeInBytes,_locale_t _Locale);
388
- size_t __cdecl mbstowcs(wchar_t *_Dest,const char *_Source,size_t _MaxCount);
389
- _CRTIMP size_t __cdecl _mbstowcs_l(wchar_t *_Dest,const char *_Source,size_t _MaxCount,_locale_t _Locale);
390
- int __cdecl rand(void);
391
- _CRTIMP int __cdecl _set_error_mode(int _Mode);
392
- void __cdecl srand(unsigned int _Seed);
393
- double __cdecl strtod(const char *_Str,char **_EndPtr);
394
- #if !defined __NO_ISOCEXT /* in libmingwex.a */
395
- #if __TINYC__
396
- __CRT_INLINE float __cdecl strtof (const char *p, char ** e) { return strtod(p, e); }
397
- __CRT_INLINE long double __cdecl strtold(const char *p, char ** e) { return strtod(p, e); }
398
- #else
399
- float __cdecl strtof (const char * __restrict__, char ** __restrict__);
400
- long double __cdecl strtold(const char * __restrict__, char ** __restrict__);
401
- #endif
402
- #else
403
- float __cdecl strtof(const char *nptr, char **endptr);
404
- #endif /* __NO_ISOCEXT */
405
- _CRTIMP double __cdecl _strtod_l(const char *_Str,char **_EndPtr,_locale_t _Locale);
406
- long __cdecl strtol(const char *_Str,char **_EndPtr,int _Radix);
407
- _CRTIMP long __cdecl _strtol_l(const char *_Str,char **_EndPtr,int _Radix,_locale_t _Locale);
408
- unsigned long __cdecl strtoul(const char *_Str,char **_EndPtr,int _Radix);
409
- _CRTIMP unsigned long __cdecl _strtoul_l(const char *_Str,char **_EndPtr,int _Radix,_locale_t _Locale);
410
- #ifndef _CRT_SYSTEM_DEFINED
411
- #define _CRT_SYSTEM_DEFINED
412
- int __cdecl system(const char *_Command);
413
- #endif
414
- _CRTIMP char *__cdecl _ultoa(unsigned long _Value,char *_Dest,int _Radix);
415
- int __cdecl wctomb(char *_MbCh,wchar_t _WCh);
416
- _CRTIMP int __cdecl _wctomb_l(char *_MbCh,wchar_t _WCh,_locale_t _Locale);
417
- size_t __cdecl wcstombs(char *_Dest,const wchar_t *_Source,size_t _MaxCount);
418
- _CRTIMP size_t __cdecl _wcstombs_l(char *_Dest,const wchar_t *_Source,size_t _MaxCount,_locale_t _Locale);
419
-
420
- #ifndef _CRT_ALLOCATION_DEFINED
421
- #define _CRT_ALLOCATION_DEFINED
422
- void *__cdecl calloc(size_t _NumOfElements,size_t _SizeOfElements);
423
- void __cdecl free(void *_Memory);
424
- void *__cdecl malloc(size_t _Size);
425
- void *__cdecl realloc(void *_Memory,size_t _NewSize);
426
- _CRTIMP void *__cdecl _recalloc(void *_Memory,size_t _Count,size_t _Size);
427
- _CRTIMP void __cdecl _aligned_free(void *_Memory);
428
- _CRTIMP void *__cdecl _aligned_malloc(size_t _Size,size_t _Alignment);
429
- _CRTIMP void *__cdecl _aligned_offset_malloc(size_t _Size,size_t _Alignment,size_t _Offset);
430
- _CRTIMP void *__cdecl _aligned_realloc(void *_Memory,size_t _Size,size_t _Alignment);
431
- _CRTIMP void *__cdecl _aligned_recalloc(void *_Memory,size_t _Count,size_t _Size,size_t _Alignment);
432
- _CRTIMP void *__cdecl _aligned_offset_realloc(void *_Memory,size_t _Size,size_t _Alignment,size_t _Offset);
433
- _CRTIMP void *__cdecl _aligned_offset_recalloc(void *_Memory,size_t _Count,size_t _Size,size_t _Alignment,size_t _Offset);
434
- #endif
435
-
436
- #ifndef _WSTDLIB_DEFINED
437
- #define _WSTDLIB_DEFINED
438
-
439
- _CRTIMP wchar_t *__cdecl _itow(int _Value,wchar_t *_Dest,int _Radix);
440
- _CRTIMP wchar_t *__cdecl _ltow(long _Value,wchar_t *_Dest,int _Radix);
441
- _CRTIMP wchar_t *__cdecl _ultow(unsigned long _Value,wchar_t *_Dest,int _Radix);
442
- double __cdecl wcstod(const wchar_t *_Str,wchar_t **_EndPtr);
443
- float __cdecl wcstof(const wchar_t *nptr, wchar_t **endptr);
444
- #if !defined __NO_ISOCEXT /* in libmingwex.a */
445
- float __cdecl wcstof( const wchar_t * __restrict__, wchar_t ** __restrict__);
446
- long double __cdecl wcstold(const wchar_t * __restrict__, wchar_t ** __restrict__);
447
- #endif /* __NO_ISOCEXT */
448
- _CRTIMP double __cdecl _wcstod_l(const wchar_t *_Str,wchar_t **_EndPtr,_locale_t _Locale);
449
- long __cdecl wcstol(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);
450
- _CRTIMP long __cdecl _wcstol_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);
451
- unsigned long __cdecl wcstoul(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);
452
- _CRTIMP unsigned long __cdecl _wcstoul_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);
453
- _CRTIMP wchar_t *__cdecl _wgetenv(const wchar_t *_VarName);
454
- #ifndef _CRT_WSYSTEM_DEFINED
455
- #define _CRT_WSYSTEM_DEFINED
456
- _CRTIMP int __cdecl _wsystem(const wchar_t *_Command);
457
- #endif
458
- _CRTIMP double __cdecl _wtof(const wchar_t *_Str);
459
- _CRTIMP double __cdecl _wtof_l(const wchar_t *_Str,_locale_t _Locale);
460
- _CRTIMP int __cdecl _wtoi(const wchar_t *_Str);
461
- _CRTIMP int __cdecl _wtoi_l(const wchar_t *_Str,_locale_t _Locale);
462
- _CRTIMP long __cdecl _wtol(const wchar_t *_Str);
463
- _CRTIMP long __cdecl _wtol_l(const wchar_t *_Str,_locale_t _Locale);
464
-
465
- #if _INTEGRAL_MAX_BITS >= 64
466
- _CRTIMP wchar_t *__cdecl _i64tow(__int64 _Val,wchar_t *_DstBuf,int _Radix);
467
- _CRTIMP wchar_t *__cdecl _ui64tow(unsigned __int64 _Val,wchar_t *_DstBuf,int _Radix);
468
- _CRTIMP __int64 __cdecl _wtoi64(const wchar_t *_Str);
469
- _CRTIMP __int64 __cdecl _wtoi64_l(const wchar_t *_Str,_locale_t _Locale);
470
- _CRTIMP __int64 __cdecl _wcstoi64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);
471
- _CRTIMP __int64 __cdecl _wcstoi64_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);
472
- _CRTIMP unsigned __int64 __cdecl _wcstoui64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);
473
- _CRTIMP unsigned __int64 __cdecl _wcstoui64_l(const wchar_t *_Str ,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);
474
- #endif
475
- #endif
476
-
477
- #ifndef _POSIX_
478
- #define _CVTBUFSIZE (309+40)
479
- _CRTIMP char *__cdecl _fullpath(char *_FullPath,const char *_Path,size_t _SizeInBytes);
480
- _CRTIMP char *__cdecl _ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign);
481
- _CRTIMP char *__cdecl _fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign);
482
- _CRTIMP char *__cdecl _gcvt(double _Val,int _NumOfDigits,char *_DstBuf);
483
- _CRTIMP int __cdecl _atodbl(_CRT_DOUBLE *_Result,char *_Str);
484
- _CRTIMP int __cdecl _atoldbl(_LDOUBLE *_Result,char *_Str);
485
- _CRTIMP int __cdecl _atoflt(_CRT_FLOAT *_Result,char *_Str);
486
- _CRTIMP int __cdecl _atodbl_l(_CRT_DOUBLE *_Result,char *_Str,_locale_t _Locale);
487
- _CRTIMP int __cdecl _atoldbl_l(_LDOUBLE *_Result,char *_Str,_locale_t _Locale);
488
- _CRTIMP int __cdecl _atoflt_l(_CRT_FLOAT *_Result,char *_Str,_locale_t _Locale);
489
- unsigned long __cdecl _lrotl(unsigned long _Val,int _Shift);
490
- unsigned long __cdecl _lrotr(unsigned long _Val,int _Shift);
491
- _CRTIMP void __cdecl _makepath(char *_Path,const char *_Drive,const char *_Dir,const char *_Filename,const char *_Ext);
492
- _onexit_t __cdecl _onexit(_onexit_t _Func);
493
-
494
- #ifndef _CRT_PERROR_DEFINED
495
- #define _CRT_PERROR_DEFINED
496
- void __cdecl perror(const char *_ErrMsg);
497
- #endif
498
- _CRTIMP int __cdecl _putenv(const char *_EnvString);
499
- unsigned int __cdecl _rotl(unsigned int _Val,int _Shift);
500
- #if _INTEGRAL_MAX_BITS >= 64
501
- unsigned __int64 __cdecl _rotl64(unsigned __int64 _Val,int _Shift);
502
- #endif
503
- unsigned int __cdecl _rotr(unsigned int _Val,int _Shift);
504
- #if _INTEGRAL_MAX_BITS >= 64
505
- unsigned __int64 __cdecl _rotr64(unsigned __int64 _Val,int _Shift);
506
- #endif
507
- _CRTIMP void __cdecl _searchenv(const char *_Filename,const char *_EnvVar,char *_ResultPath);
508
- _CRTIMP void __cdecl _splitpath(const char *_FullPath,char *_Drive,char *_Dir,char *_Filename,char *_Ext);
509
- _CRTIMP void __cdecl _swab(char *_Buf1,char *_Buf2,int _SizeInBytes);
510
-
511
- #ifndef _WSTDLIBP_DEFINED
512
- #define _WSTDLIBP_DEFINED
513
- _CRTIMP wchar_t *__cdecl _wfullpath(wchar_t *_FullPath,const wchar_t *_Path,size_t _SizeInWords);
514
- _CRTIMP void __cdecl _wmakepath(wchar_t *_ResultPath,const wchar_t *_Drive,const wchar_t *_Dir,const wchar_t *_Filename,const wchar_t *_Ext);
515
- #ifndef _CRT_WPERROR_DEFINED
516
- #define _CRT_WPERROR_DEFINED
517
- _CRTIMP void __cdecl _wperror(const wchar_t *_ErrMsg);
518
- #endif
519
- _CRTIMP int __cdecl _wputenv(const wchar_t *_EnvString);
520
- _CRTIMP void __cdecl _wsearchenv(const wchar_t *_Filename,const wchar_t *_EnvVar,wchar_t *_ResultPath);
521
- _CRTIMP void __cdecl _wsplitpath(const wchar_t *_FullPath,wchar_t *_Drive,wchar_t *_Dir,wchar_t *_Filename,wchar_t *_Ext);
522
- #endif
523
-
524
- _CRTIMP void __cdecl _beep(unsigned _Frequency,unsigned _Duration) __MINGW_ATTRIB_DEPRECATED;
525
- /* Not to be confused with _set_error_mode (int). */
526
- _CRTIMP void __cdecl _seterrormode(int _Mode) __MINGW_ATTRIB_DEPRECATED;
527
- _CRTIMP void __cdecl _sleep(unsigned long _Duration) __MINGW_ATTRIB_DEPRECATED;
528
- #endif
529
-
530
- #ifndef NO_OLDNAMES
531
- #ifndef _POSIX_
532
- #if 0
533
- #ifndef __cplusplus
534
- #ifndef NOMINMAX
535
- #ifndef max
536
- #define max(a,b) (((a) > (b)) ? (a) : (b))
537
- #endif
538
- #ifndef min
539
- #define min(a,b) (((a) < (b)) ? (a) : (b))
540
- #endif
541
- #endif
542
- #endif
543
- #endif
544
-
545
- #define sys_errlist _sys_errlist
546
- #define sys_nerr _sys_nerr
547
- #define environ _environ
548
- char *__cdecl ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign);
549
- char *__cdecl fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign);
550
- char *__cdecl gcvt(double _Val,int _NumOfDigits,char *_DstBuf);
551
- char *__cdecl itoa(int _Val,char *_DstBuf,int _Radix);
552
- char *__cdecl ltoa(long _Val,char *_DstBuf,int _Radix);
553
- int __cdecl putenv(const char *_EnvString);
554
- void __cdecl swab(char *_Buf1,char *_Buf2,int _SizeInBytes);
555
- char *__cdecl ultoa(unsigned long _Val,char *_Dstbuf,int _Radix);
556
- onexit_t __cdecl onexit(onexit_t _Func);
557
- #endif
558
- #endif
559
-
560
- #if !defined __NO_ISOCEXT /* externs in static libmingwex.a */
561
-
562
- typedef struct { long long quot, rem; } lldiv_t;
563
-
564
- lldiv_t __cdecl lldiv(long long, long long);
565
-
566
- __CRT_INLINE long long __cdecl llabs(long long _j) { return (_j >= 0 ? _j : -_j); }
567
-
568
- #ifdef __TINYC__ /* gr */
569
- #define strtoll _strtoi64
570
- #define strtoull _strtoui64
571
- #else
572
- long long __cdecl strtoll(const char* __restrict__, char** __restrict, int);
573
- unsigned long long __cdecl strtoull(const char* __restrict__, char** __restrict__, int);
574
- #endif
575
-
576
- /* these are stubs for MS _i64 versions */
577
- long long __cdecl atoll (const char *);
578
-
579
- #ifndef __STRICT_ANSI__
580
- long long __cdecl wtoll (const wchar_t *);
581
- char *__cdecl lltoa (long long, char *, int);
582
- char *__cdecl ulltoa (unsigned long long , char *, int);
583
- wchar_t *__cdecl lltow (long long, wchar_t *, int);
584
- wchar_t *__cdecl ulltow (unsigned long long, wchar_t *, int);
585
-
586
- /* __CRT_INLINE using non-ansi functions */
587
- __CRT_INLINE long long __cdecl atoll (const char * _c) { return _atoi64 (_c); }
588
- __CRT_INLINE char *__cdecl lltoa (long long _n, char * _c, int _i) { return _i64toa (_n, _c, _i); }
589
- __CRT_INLINE char *__cdecl ulltoa (unsigned long long _n, char * _c, int _i) { return _ui64toa (_n, _c, _i); }
590
- __CRT_INLINE long long __cdecl wtoll (const wchar_t * _w) { return _wtoi64 (_w); }
591
- __CRT_INLINE wchar_t *__cdecl lltow (long long _n, wchar_t * _w, int _i) { return _i64tow (_n, _w, _i); }
592
- __CRT_INLINE wchar_t *__cdecl ulltow (unsigned long long _n, wchar_t * _w, int _i) { return _ui64tow (_n, _w, _i); }
593
- #endif /* (__STRICT_ANSI__) */
594
-
595
- #endif /* !__NO_ISOCEXT */
596
-
597
- #ifdef __cplusplus
598
- }
599
- #endif
600
-
601
- #pragma pack(pop)
602
-
603
- #include <sec_api/stdlib_s.h>
604
- #include <malloc.h>
605
-
606
- #endif
1
+ /**
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.
5
+ */
6
+ #ifndef _INC_STDLIB
7
+ #define _INC_STDLIB
8
+
9
+ #include <_mingw.h>
10
+ #include <limits.h>
11
+
12
+ #pragma pack(push,_CRT_PACKING)
13
+
14
+ #ifdef __cplusplus
15
+ extern "C" {
16
+ #endif
17
+
18
+ #ifndef NULL
19
+ #ifdef __cplusplus
20
+ #define NULL 0
21
+ #else
22
+ #define NULL ((void *)0)
23
+ #endif
24
+ #endif
25
+
26
+ #define EXIT_SUCCESS 0
27
+ #define EXIT_FAILURE 1
28
+
29
+ #ifndef _ONEXIT_T_DEFINED
30
+ #define _ONEXIT_T_DEFINED
31
+
32
+ typedef int (__cdecl *_onexit_t)(void);
33
+
34
+ #ifndef NO_OLDNAMES
35
+ #define onexit_t _onexit_t
36
+ #endif
37
+ #endif
38
+
39
+ #ifndef _DIV_T_DEFINED
40
+ #define _DIV_T_DEFINED
41
+
42
+ typedef struct _div_t {
43
+ int quot;
44
+ int rem;
45
+ } div_t;
46
+
47
+ typedef struct _ldiv_t {
48
+ long quot;
49
+ long rem;
50
+ } ldiv_t;
51
+ #endif
52
+
53
+ #ifndef _CRT_DOUBLE_DEC
54
+ #define _CRT_DOUBLE_DEC
55
+
56
+ #pragma pack(4)
57
+ typedef struct {
58
+ unsigned char ld[10];
59
+ } _LDOUBLE;
60
+ #pragma pack()
61
+
62
+ #define _PTR_LD(x) ((unsigned char *)(&(x)->ld))
63
+
64
+ typedef struct {
65
+ double x;
66
+ } _CRT_DOUBLE;
67
+
68
+ typedef struct {
69
+ float f;
70
+ } _CRT_FLOAT;
71
+
72
+ #pragma push_macro("long")
73
+ #undef long
74
+
75
+ typedef struct {
76
+ long double x;
77
+ } _LONGDOUBLE;
78
+
79
+ #pragma pop_macro("long")
80
+
81
+ #pragma pack(4)
82
+ typedef struct {
83
+ unsigned char ld12[12];
84
+ } _LDBL12;
85
+ #pragma pack()
86
+ #endif
87
+
88
+ #define RAND_MAX 0x7fff
89
+
90
+ #ifndef MB_CUR_MAX
91
+ #define MB_CUR_MAX ___mb_cur_max_func()
92
+ #ifndef __mb_cur_max
93
+ #ifdef _MSVCRT_
94
+ extern int __mb_cur_max;
95
+ #else
96
+ #define __mb_cur_max (*_imp____mb_cur_max)
97
+ extern int *_imp____mb_cur_max;
98
+ #endif
99
+ #endif
100
+ #ifdef _MSVCRT_
101
+ extern int __mbcur_max;
102
+ #define ___mb_cur_max_func() (__mb_cur_max)
103
+ #else
104
+ extern int* _imp____mbcur_max;
105
+ #define ___mb_cur_max_func() (*_imp____mb_cur_max)
106
+ #endif
107
+ #endif
108
+
109
+ #define __max(a,b) (((a) > (b)) ? (a) : (b))
110
+ #define __min(a,b) (((a) < (b)) ? (a) : (b))
111
+
112
+ #define _MAX_PATH 260
113
+ #define _MAX_DRIVE 3
114
+ #define _MAX_DIR 256
115
+ #define _MAX_FNAME 256
116
+ #define _MAX_EXT 256
117
+
118
+ #define _OUT_TO_DEFAULT 0
119
+ #define _OUT_TO_STDERR 1
120
+ #define _OUT_TO_MSGBOX 2
121
+ #define _REPORT_ERRMODE 3
122
+
123
+ #define _WRITE_ABORT_MSG 0x1
124
+ #define _CALL_REPORTFAULT 0x2
125
+
126
+ #define _MAX_ENV 32767
127
+
128
+ typedef void (__cdecl *_purecall_handler)(void);
129
+
130
+ _CRTIMP _purecall_handler __cdecl _set_purecall_handler(_purecall_handler _Handler);
131
+ _CRTIMP _purecall_handler __cdecl _get_purecall_handler(void);
132
+
133
+ typedef void (__cdecl *_invalid_parameter_handler)(const wchar_t *,const wchar_t *,const wchar_t *,unsigned int,uintptr_t);
134
+ _invalid_parameter_handler __cdecl _set_invalid_parameter_handler(_invalid_parameter_handler _Handler);
135
+ _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(void);
136
+
137
+ #ifndef _CRT_ERRNO_DEFINED
138
+ #define _CRT_ERRNO_DEFINED
139
+ _CRTIMP int *__cdecl _errno(void);
140
+ #define errno (*_errno())
141
+ errno_t __cdecl _set_errno(int _Value);
142
+ errno_t __cdecl _get_errno(int *_Value);
143
+ #endif
144
+ _CRTIMP unsigned long *__cdecl __doserrno(void);
145
+ #define _doserrno (*__doserrno())
146
+ errno_t __cdecl _set_doserrno(unsigned long _Value);
147
+ errno_t __cdecl _get_doserrno(unsigned long *_Value);
148
+ #ifdef _MSVCRT_
149
+ extern char *_sys_errlist[];
150
+ extern int _sys_nerr;
151
+ #else
152
+ _CRTIMP char *_sys_errlist[1];
153
+ _CRTIMP int _sys_nerr;
154
+ #endif
155
+ #if (defined(_X86_) && !defined(__x86_64))
156
+ _CRTIMP int *__cdecl __p___argc(void);
157
+ _CRTIMP char ***__cdecl __p___argv(void);
158
+ _CRTIMP wchar_t ***__cdecl __p___wargv(void);
159
+ _CRTIMP char ***__cdecl __p__environ(void);
160
+ _CRTIMP wchar_t ***__cdecl __p__wenviron(void);
161
+ _CRTIMP char **__cdecl __p__pgmptr(void);
162
+ _CRTIMP wchar_t **__cdecl __p__wpgmptr(void);
163
+ #endif
164
+ #ifndef __argc
165
+ #ifdef _MSVCRT_
166
+ extern int __argc;
167
+ #else
168
+ #define __argc (*_imp____argc)
169
+ extern int *_imp____argc;
170
+ #endif
171
+ #endif
172
+ #ifndef __argv
173
+ #ifdef _MSVCRT_
174
+ extern char **__argv;
175
+ #else
176
+ #define __argv (*_imp____argv)
177
+ extern char ***_imp____argv;
178
+ #endif
179
+ #endif
180
+ #ifndef __wargv
181
+ #ifdef _MSVCRT_
182
+ extern wchar_t **__wargv;
183
+ #else
184
+ #define __wargv (*_imp____wargv)
185
+ extern wchar_t ***_imp____wargv;
186
+ #endif
187
+ #endif
188
+
189
+ #ifdef _POSIX_
190
+ extern char **environ;
191
+ #else
192
+ #ifndef _environ
193
+ #ifdef _MSVCRT_
194
+ extern char **_environ;
195
+ #else
196
+ #define _environ (*_imp___environ)
197
+ extern char ***_imp___environ;
198
+ #endif
199
+ #endif
200
+
201
+ #ifndef _wenviron
202
+ #ifdef _MSVCRT_
203
+ extern wchar_t **_wenviron;
204
+ #else
205
+ #define _wenviron (*_imp___wenviron)
206
+ extern wchar_t ***_imp___wenviron;
207
+ #endif
208
+ #endif
209
+ #endif
210
+
211
+ #if defined __aarch64__
212
+ /* something does not work using those from msvcrt.dll */
213
+ # undef __argc
214
+ # undef __argv
215
+ # undef __wargv
216
+ # undef _wenviron
217
+ # undef _environ
218
+ extern int __argc;
219
+ extern char **__argv;
220
+ extern wchar_t **__wargv;
221
+ extern char **_environ;
222
+ extern wchar_t **_wenviron;
223
+ #endif
224
+
225
+ #ifndef _pgmptr
226
+ #ifdef _MSVCRT_
227
+ extern char *_pgmptr;
228
+ #else
229
+ #define _pgmptr (*_imp___pgmptr)
230
+ extern char **_imp___pgmptr;
231
+ #endif
232
+ #endif
233
+
234
+ #ifndef _wpgmptr
235
+ #ifdef _MSVCRT_
236
+ extern wchar_t *_wpgmptr;
237
+ #else
238
+ #define _wpgmptr (*_imp___wpgmptr)
239
+ extern wchar_t **_imp___wpgmptr;
240
+ #endif
241
+ #endif
242
+ errno_t __cdecl _get_pgmptr(char **_Value);
243
+ errno_t __cdecl _get_wpgmptr(wchar_t **_Value);
244
+ #ifndef _fmode
245
+ #ifdef _MSVCRT_
246
+ extern int _fmode;
247
+ #else
248
+ #define _fmode (*_imp___fmode)
249
+ extern int *_imp___fmode;
250
+ #endif
251
+ #endif
252
+ _CRTIMP errno_t __cdecl _set_fmode(int _Mode);
253
+ _CRTIMP errno_t __cdecl _get_fmode(int *_PMode);
254
+
255
+ #ifndef _osplatform
256
+ #ifdef _MSVCRT_
257
+ extern unsigned int _osplatform;
258
+ #else
259
+ #define _osplatform (*_imp___osplatform)
260
+ extern unsigned int *_imp___osplatform;
261
+ #endif
262
+ #endif
263
+
264
+ #ifndef _osver
265
+ #ifdef _MSVCRT_
266
+ extern unsigned int _osver;
267
+ #else
268
+ #define _osver (*_imp___osver)
269
+ extern unsigned int *_imp___osver;
270
+ #endif
271
+ #endif
272
+
273
+ #ifndef _winver
274
+ #ifdef _MSVCRT_
275
+ extern unsigned int _winver;
276
+ #else
277
+ #define _winver (*_imp___winver)
278
+ extern unsigned int *_imp___winver;
279
+ #endif
280
+ #endif
281
+
282
+ #ifndef _winmajor
283
+ #ifdef _MSVCRT_
284
+ extern unsigned int _winmajor;
285
+ #else
286
+ #define _winmajor (*_imp___winmajor)
287
+ extern unsigned int *_imp___winmajor;
288
+ #endif
289
+ #endif
290
+
291
+ #ifndef _winminor
292
+ #ifdef _MSVCRT_
293
+ extern unsigned int _winminor;
294
+ #else
295
+ #define _winminor (*_imp___winminor)
296
+ extern unsigned int *_imp___winminor;
297
+ #endif
298
+ #endif
299
+
300
+ errno_t __cdecl _get_osplatform(unsigned int *_Value);
301
+ errno_t __cdecl _get_osver(unsigned int *_Value);
302
+ errno_t __cdecl _get_winver(unsigned int *_Value);
303
+ errno_t __cdecl _get_winmajor(unsigned int *_Value);
304
+ errno_t __cdecl _get_winminor(unsigned int *_Value);
305
+ #ifndef _countof
306
+ #ifndef __cplusplus
307
+ #define _countof(_Array) (sizeof(_Array) / sizeof(_Array[0]))
308
+ #else
309
+ extern "C++" {
310
+ template <typename _CountofType,size_t _SizeOfArray> char (*__countof_helper(UNALIGNED _CountofType (&_Array)[_SizeOfArray]))[_SizeOfArray];
311
+ #define _countof(_Array) sizeof(*__countof_helper(_Array))
312
+ }
313
+ #endif
314
+ #endif
315
+
316
+ #ifndef _CRT_TERMINATE_DEFINED
317
+ #define _CRT_TERMINATE_DEFINED
318
+ void __cdecl __MINGW_NOTHROW exit(int _Code) __MINGW_ATTRIB_NORETURN;
319
+ _CRTIMP void __cdecl __MINGW_NOTHROW _exit(int _Code) __MINGW_ATTRIB_NORETURN;
320
+ #if !defined __NO_ISOCEXT /* extern stub in static libmingwex.a */
321
+ /* C99 function name */
322
+ void __cdecl _Exit(int) __MINGW_ATTRIB_NORETURN;
323
+ __CRT_INLINE __MINGW_ATTRIB_NORETURN void __cdecl _Exit(int status)
324
+ { _exit(status); }
325
+ #endif
326
+
327
+ #pragma push_macro("abort")
328
+ #undef abort
329
+ void __cdecl __declspec(noreturn) abort(void);
330
+ #pragma pop_macro("abort")
331
+
332
+ #endif
333
+
334
+ _CRTIMP unsigned int __cdecl _set_abort_behavior(unsigned int _Flags,unsigned int _Mask);
335
+
336
+ #ifndef _CRT_ABS_DEFINED
337
+ #define _CRT_ABS_DEFINED
338
+ int __cdecl abs(int _X);
339
+ long __cdecl labs(long _X);
340
+ #endif
341
+
342
+ #if _INTEGRAL_MAX_BITS >= 64
343
+ __int64 __cdecl _abs64(__int64);
344
+ #endif
345
+ int __cdecl atexit(void (__cdecl *)(void));
346
+ #ifndef _CRT_ATOF_DEFINED
347
+ #define _CRT_ATOF_DEFINED
348
+ double __cdecl atof(const char *_String);
349
+ double __cdecl _atof_l(const char *_String,_locale_t _Locale);
350
+ #endif
351
+ int __cdecl atoi(const char *_Str);
352
+ _CRTIMP int __cdecl _atoi_l(const char *_Str,_locale_t _Locale);
353
+ long __cdecl atol(const char *_Str);
354
+ _CRTIMP long __cdecl _atol_l(const char *_Str,_locale_t _Locale);
355
+ #ifndef _CRT_ALGO_DEFINED
356
+ #define _CRT_ALGO_DEFINED
357
+ void *__cdecl bsearch(const void *_Key,const void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
358
+ void __cdecl qsort(void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
359
+ #endif
360
+ unsigned short __cdecl _byteswap_ushort(unsigned short _Short);
361
+ /*unsigned long __cdecl _byteswap_ulong (unsigned long _Long); */
362
+ #if _INTEGRAL_MAX_BITS >= 64
363
+ unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64 _Int64);
364
+ #endif
365
+ div_t __cdecl div(int _Numerator,int _Denominator);
366
+ char *__cdecl getenv(const char *_VarName);
367
+ _CRTIMP char *__cdecl _itoa(int _Value,char *_Dest,int _Radix);
368
+ #if _INTEGRAL_MAX_BITS >= 64
369
+ _CRTIMP char *__cdecl _i64toa(__int64 _Val,char *_DstBuf,int _Radix);
370
+ _CRTIMP char *__cdecl _ui64toa(unsigned __int64 _Val,char *_DstBuf,int _Radix);
371
+ _CRTIMP __int64 __cdecl _atoi64(const char *_String);
372
+ _CRTIMP __int64 __cdecl _atoi64_l(const char *_String,_locale_t _Locale);
373
+ _CRTIMP __int64 __cdecl _strtoi64(const char *_String,char **_EndPtr,int _Radix);
374
+ _CRTIMP __int64 __cdecl _strtoi64_l(const char *_String,char **_EndPtr,int _Radix,_locale_t _Locale);
375
+ _CRTIMP unsigned __int64 __cdecl _strtoui64(const char *_String,char **_EndPtr,int _Radix);
376
+ _CRTIMP unsigned __int64 __cdecl _strtoui64_l(const char *_String,char **_EndPtr,int _Radix,_locale_t _Locale);
377
+ #endif
378
+ ldiv_t __cdecl ldiv(long _Numerator,long _Denominator);
379
+ _CRTIMP char *__cdecl _ltoa(long _Value,char *_Dest,int _Radix);
380
+ int __cdecl mblen(const char *_Ch,size_t _MaxCount);
381
+ _CRTIMP int __cdecl _mblen_l(const char *_Ch,size_t _MaxCount,_locale_t _Locale);
382
+ _CRTIMP size_t __cdecl _mbstrlen(const char *_Str);
383
+ _CRTIMP size_t __cdecl _mbstrlen_l(const char *_Str,_locale_t _Locale);
384
+ _CRTIMP size_t __cdecl _mbstrnlen(const char *_Str,size_t _MaxCount);
385
+ _CRTIMP size_t __cdecl _mbstrnlen_l(const char *_Str,size_t _MaxCount,_locale_t _Locale);
386
+ int __cdecl mbtowc(wchar_t *_DstCh,const char *_SrcCh,size_t _SrcSizeInBytes);
387
+ _CRTIMP int __cdecl _mbtowc_l(wchar_t *_DstCh,const char *_SrcCh,size_t _SrcSizeInBytes,_locale_t _Locale);
388
+ size_t __cdecl mbstowcs(wchar_t *_Dest,const char *_Source,size_t _MaxCount);
389
+ _CRTIMP size_t __cdecl _mbstowcs_l(wchar_t *_Dest,const char *_Source,size_t _MaxCount,_locale_t _Locale);
390
+ int __cdecl rand(void);
391
+ _CRTIMP int __cdecl _set_error_mode(int _Mode);
392
+ void __cdecl srand(unsigned int _Seed);
393
+ double __cdecl strtod(const char *_Str,char **_EndPtr);
394
+ #if !defined __NO_ISOCEXT /* in libmingwex.a */
395
+ #if __TINYC__
396
+ __CRT_INLINE float __cdecl strtof (const char *p, char ** e) { return strtod(p, e); }
397
+ __CRT_INLINE long double __cdecl strtold(const char *p, char ** e) { return strtod(p, e); }
398
+ #else
399
+ float __cdecl strtof (const char * __restrict__, char ** __restrict__);
400
+ long double __cdecl strtold(const char * __restrict__, char ** __restrict__);
401
+ #endif
402
+ #else
403
+ float __cdecl strtof(const char *nptr, char **endptr);
404
+ #endif /* __NO_ISOCEXT */
405
+ _CRTIMP double __cdecl _strtod_l(const char *_Str,char **_EndPtr,_locale_t _Locale);
406
+ long __cdecl strtol(const char *_Str,char **_EndPtr,int _Radix);
407
+ _CRTIMP long __cdecl _strtol_l(const char *_Str,char **_EndPtr,int _Radix,_locale_t _Locale);
408
+ unsigned long __cdecl strtoul(const char *_Str,char **_EndPtr,int _Radix);
409
+ _CRTIMP unsigned long __cdecl _strtoul_l(const char *_Str,char **_EndPtr,int _Radix,_locale_t _Locale);
410
+ #ifndef _CRT_SYSTEM_DEFINED
411
+ #define _CRT_SYSTEM_DEFINED
412
+ int __cdecl system(const char *_Command);
413
+ #endif
414
+ _CRTIMP char *__cdecl _ultoa(unsigned long _Value,char *_Dest,int _Radix);
415
+ int __cdecl wctomb(char *_MbCh,wchar_t _WCh);
416
+ _CRTIMP int __cdecl _wctomb_l(char *_MbCh,wchar_t _WCh,_locale_t _Locale);
417
+ size_t __cdecl wcstombs(char *_Dest,const wchar_t *_Source,size_t _MaxCount);
418
+ _CRTIMP size_t __cdecl _wcstombs_l(char *_Dest,const wchar_t *_Source,size_t _MaxCount,_locale_t _Locale);
419
+
420
+ #ifndef _CRT_ALLOCATION_DEFINED
421
+ #define _CRT_ALLOCATION_DEFINED
422
+ void *__cdecl calloc(size_t _NumOfElements,size_t _SizeOfElements);
423
+ void __cdecl free(void *_Memory);
424
+ void *__cdecl malloc(size_t _Size);
425
+ void *__cdecl realloc(void *_Memory,size_t _NewSize);
426
+ _CRTIMP void *__cdecl _recalloc(void *_Memory,size_t _Count,size_t _Size);
427
+ _CRTIMP void __cdecl _aligned_free(void *_Memory);
428
+ _CRTIMP void *__cdecl _aligned_malloc(size_t _Size,size_t _Alignment);
429
+ _CRTIMP void *__cdecl _aligned_offset_malloc(size_t _Size,size_t _Alignment,size_t _Offset);
430
+ _CRTIMP void *__cdecl _aligned_realloc(void *_Memory,size_t _Size,size_t _Alignment);
431
+ _CRTIMP void *__cdecl _aligned_recalloc(void *_Memory,size_t _Count,size_t _Size,size_t _Alignment);
432
+ _CRTIMP void *__cdecl _aligned_offset_realloc(void *_Memory,size_t _Size,size_t _Alignment,size_t _Offset);
433
+ _CRTIMP void *__cdecl _aligned_offset_recalloc(void *_Memory,size_t _Count,size_t _Size,size_t _Alignment,size_t _Offset);
434
+ #endif
435
+
436
+ #ifndef _WSTDLIB_DEFINED
437
+ #define _WSTDLIB_DEFINED
438
+
439
+ _CRTIMP wchar_t *__cdecl _itow(int _Value,wchar_t *_Dest,int _Radix);
440
+ _CRTIMP wchar_t *__cdecl _ltow(long _Value,wchar_t *_Dest,int _Radix);
441
+ _CRTIMP wchar_t *__cdecl _ultow(unsigned long _Value,wchar_t *_Dest,int _Radix);
442
+ double __cdecl wcstod(const wchar_t *_Str,wchar_t **_EndPtr);
443
+ float __cdecl wcstof(const wchar_t *nptr, wchar_t **endptr);
444
+ #if !defined __NO_ISOCEXT /* in libmingwex.a */
445
+ float __cdecl wcstof( const wchar_t * __restrict__, wchar_t ** __restrict__);
446
+ long double __cdecl wcstold(const wchar_t * __restrict__, wchar_t ** __restrict__);
447
+ #endif /* __NO_ISOCEXT */
448
+ _CRTIMP double __cdecl _wcstod_l(const wchar_t *_Str,wchar_t **_EndPtr,_locale_t _Locale);
449
+ long __cdecl wcstol(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);
450
+ _CRTIMP long __cdecl _wcstol_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);
451
+ unsigned long __cdecl wcstoul(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);
452
+ _CRTIMP unsigned long __cdecl _wcstoul_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);
453
+ _CRTIMP wchar_t *__cdecl _wgetenv(const wchar_t *_VarName);
454
+ #ifndef _CRT_WSYSTEM_DEFINED
455
+ #define _CRT_WSYSTEM_DEFINED
456
+ _CRTIMP int __cdecl _wsystem(const wchar_t *_Command);
457
+ #endif
458
+ _CRTIMP double __cdecl _wtof(const wchar_t *_Str);
459
+ _CRTIMP double __cdecl _wtof_l(const wchar_t *_Str,_locale_t _Locale);
460
+ _CRTIMP int __cdecl _wtoi(const wchar_t *_Str);
461
+ _CRTIMP int __cdecl _wtoi_l(const wchar_t *_Str,_locale_t _Locale);
462
+ _CRTIMP long __cdecl _wtol(const wchar_t *_Str);
463
+ _CRTIMP long __cdecl _wtol_l(const wchar_t *_Str,_locale_t _Locale);
464
+
465
+ #if _INTEGRAL_MAX_BITS >= 64
466
+ _CRTIMP wchar_t *__cdecl _i64tow(__int64 _Val,wchar_t *_DstBuf,int _Radix);
467
+ _CRTIMP wchar_t *__cdecl _ui64tow(unsigned __int64 _Val,wchar_t *_DstBuf,int _Radix);
468
+ _CRTIMP __int64 __cdecl _wtoi64(const wchar_t *_Str);
469
+ _CRTIMP __int64 __cdecl _wtoi64_l(const wchar_t *_Str,_locale_t _Locale);
470
+ _CRTIMP __int64 __cdecl _wcstoi64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);
471
+ _CRTIMP __int64 __cdecl _wcstoi64_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);
472
+ _CRTIMP unsigned __int64 __cdecl _wcstoui64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);
473
+ _CRTIMP unsigned __int64 __cdecl _wcstoui64_l(const wchar_t *_Str ,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);
474
+ #endif
475
+ #endif
476
+
477
+ #ifndef _POSIX_
478
+ #define _CVTBUFSIZE (309+40)
479
+ _CRTIMP char *__cdecl _fullpath(char *_FullPath,const char *_Path,size_t _SizeInBytes);
480
+ _CRTIMP char *__cdecl _ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign);
481
+ _CRTIMP char *__cdecl _fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign);
482
+ _CRTIMP char *__cdecl _gcvt(double _Val,int _NumOfDigits,char *_DstBuf);
483
+ _CRTIMP int __cdecl _atodbl(_CRT_DOUBLE *_Result,char *_Str);
484
+ _CRTIMP int __cdecl _atoldbl(_LDOUBLE *_Result,char *_Str);
485
+ _CRTIMP int __cdecl _atoflt(_CRT_FLOAT *_Result,char *_Str);
486
+ _CRTIMP int __cdecl _atodbl_l(_CRT_DOUBLE *_Result,char *_Str,_locale_t _Locale);
487
+ _CRTIMP int __cdecl _atoldbl_l(_LDOUBLE *_Result,char *_Str,_locale_t _Locale);
488
+ _CRTIMP int __cdecl _atoflt_l(_CRT_FLOAT *_Result,char *_Str,_locale_t _Locale);
489
+ unsigned long __cdecl _lrotl(unsigned long _Val,int _Shift);
490
+ unsigned long __cdecl _lrotr(unsigned long _Val,int _Shift);
491
+ _CRTIMP void __cdecl _makepath(char *_Path,const char *_Drive,const char *_Dir,const char *_Filename,const char *_Ext);
492
+ _onexit_t __cdecl _onexit(_onexit_t _Func);
493
+
494
+ #ifndef _CRT_PERROR_DEFINED
495
+ #define _CRT_PERROR_DEFINED
496
+ void __cdecl perror(const char *_ErrMsg);
497
+ #endif
498
+ _CRTIMP int __cdecl _putenv(const char *_EnvString);
499
+ unsigned int __cdecl _rotl(unsigned int _Val,int _Shift);
500
+ #if _INTEGRAL_MAX_BITS >= 64
501
+ unsigned __int64 __cdecl _rotl64(unsigned __int64 _Val,int _Shift);
502
+ #endif
503
+ unsigned int __cdecl _rotr(unsigned int _Val,int _Shift);
504
+ #if _INTEGRAL_MAX_BITS >= 64
505
+ unsigned __int64 __cdecl _rotr64(unsigned __int64 _Val,int _Shift);
506
+ #endif
507
+ _CRTIMP void __cdecl _searchenv(const char *_Filename,const char *_EnvVar,char *_ResultPath);
508
+ _CRTIMP void __cdecl _splitpath(const char *_FullPath,char *_Drive,char *_Dir,char *_Filename,char *_Ext);
509
+ _CRTIMP void __cdecl _swab(char *_Buf1,char *_Buf2,int _SizeInBytes);
510
+
511
+ #ifndef _WSTDLIBP_DEFINED
512
+ #define _WSTDLIBP_DEFINED
513
+ _CRTIMP wchar_t *__cdecl _wfullpath(wchar_t *_FullPath,const wchar_t *_Path,size_t _SizeInWords);
514
+ _CRTIMP void __cdecl _wmakepath(wchar_t *_ResultPath,const wchar_t *_Drive,const wchar_t *_Dir,const wchar_t *_Filename,const wchar_t *_Ext);
515
+ #ifndef _CRT_WPERROR_DEFINED
516
+ #define _CRT_WPERROR_DEFINED
517
+ _CRTIMP void __cdecl _wperror(const wchar_t *_ErrMsg);
518
+ #endif
519
+ _CRTIMP int __cdecl _wputenv(const wchar_t *_EnvString);
520
+ _CRTIMP void __cdecl _wsearchenv(const wchar_t *_Filename,const wchar_t *_EnvVar,wchar_t *_ResultPath);
521
+ _CRTIMP void __cdecl _wsplitpath(const wchar_t *_FullPath,wchar_t *_Drive,wchar_t *_Dir,wchar_t *_Filename,wchar_t *_Ext);
522
+ #endif
523
+
524
+ _CRTIMP void __cdecl _beep(unsigned _Frequency,unsigned _Duration) __MINGW_ATTRIB_DEPRECATED;
525
+ /* Not to be confused with _set_error_mode (int). */
526
+ _CRTIMP void __cdecl _seterrormode(int _Mode) __MINGW_ATTRIB_DEPRECATED;
527
+ _CRTIMP void __cdecl _sleep(unsigned long _Duration) __MINGW_ATTRIB_DEPRECATED;
528
+ #endif
529
+
530
+ #ifndef NO_OLDNAMES
531
+ #ifndef _POSIX_
532
+ #if 0
533
+ #ifndef __cplusplus
534
+ #ifndef NOMINMAX
535
+ #ifndef max
536
+ #define max(a,b) (((a) > (b)) ? (a) : (b))
537
+ #endif
538
+ #ifndef min
539
+ #define min(a,b) (((a) < (b)) ? (a) : (b))
540
+ #endif
541
+ #endif
542
+ #endif
543
+ #endif
544
+
545
+ #define sys_errlist _sys_errlist
546
+ #define sys_nerr _sys_nerr
547
+ #define environ _environ
548
+ char *__cdecl ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign);
549
+ char *__cdecl fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign);
550
+ char *__cdecl gcvt(double _Val,int _NumOfDigits,char *_DstBuf);
551
+ char *__cdecl itoa(int _Val,char *_DstBuf,int _Radix);
552
+ char *__cdecl ltoa(long _Val,char *_DstBuf,int _Radix);
553
+ int __cdecl putenv(const char *_EnvString);
554
+ void __cdecl swab(char *_Buf1,char *_Buf2,int _SizeInBytes);
555
+ char *__cdecl ultoa(unsigned long _Val,char *_Dstbuf,int _Radix);
556
+ onexit_t __cdecl onexit(onexit_t _Func);
557
+ #endif
558
+ #endif
559
+
560
+ #if !defined __NO_ISOCEXT /* externs in static libmingwex.a */
561
+
562
+ typedef struct { long long quot, rem; } lldiv_t;
563
+
564
+ lldiv_t __cdecl lldiv(long long, long long);
565
+
566
+ __CRT_INLINE long long __cdecl llabs(long long _j) { return (_j >= 0 ? _j : -_j); }
567
+
568
+ #ifdef __TINYC__ /* gr */
569
+ #define strtoll _strtoi64
570
+ #define strtoull _strtoui64
571
+ #else
572
+ long long __cdecl strtoll(const char* __restrict__, char** __restrict, int);
573
+ unsigned long long __cdecl strtoull(const char* __restrict__, char** __restrict__, int);
574
+ #endif
575
+
576
+ /* these are stubs for MS _i64 versions */
577
+ long long __cdecl atoll (const char *);
578
+
579
+ #ifndef __STRICT_ANSI__
580
+ long long __cdecl wtoll (const wchar_t *);
581
+ char *__cdecl lltoa (long long, char *, int);
582
+ char *__cdecl ulltoa (unsigned long long , char *, int);
583
+ wchar_t *__cdecl lltow (long long, wchar_t *, int);
584
+ wchar_t *__cdecl ulltow (unsigned long long, wchar_t *, int);
585
+
586
+ /* __CRT_INLINE using non-ansi functions */
587
+ __CRT_INLINE long long __cdecl atoll (const char * _c) { return _atoi64 (_c); }
588
+ __CRT_INLINE char *__cdecl lltoa (long long _n, char * _c, int _i) { return _i64toa (_n, _c, _i); }
589
+ __CRT_INLINE char *__cdecl ulltoa (unsigned long long _n, char * _c, int _i) { return _ui64toa (_n, _c, _i); }
590
+ __CRT_INLINE long long __cdecl wtoll (const wchar_t * _w) { return _wtoi64 (_w); }
591
+ __CRT_INLINE wchar_t *__cdecl lltow (long long _n, wchar_t * _w, int _i) { return _i64tow (_n, _w, _i); }
592
+ __CRT_INLINE wchar_t *__cdecl ulltow (unsigned long long _n, wchar_t * _w, int _i) { return _ui64tow (_n, _w, _i); }
593
+ #endif /* (__STRICT_ANSI__) */
594
+
595
+ #endif /* !__NO_ISOCEXT */
596
+
597
+ #ifdef __cplusplus
598
+ }
599
+ #endif
600
+
601
+ #pragma pack(pop)
602
+
603
+ #include <sec_api/stdlib_s.h>
604
+ #include <malloc.h>
605
+
606
+ #endif