lzham_alpha_sys/
lib.rs

1/* automatically generated by rust-bindgen 0.69.4 */
2
3#![allow(non_upper_case_globals)]
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6#![allow(improper_ctypes)]
7
8
9pub const _VCRT_COMPILER_PREPROCESSOR: u32 = 1;
10pub const _SAL_VERSION: u32 = 20;
11pub const __SAL_H_VERSION: u32 = 180000000;
12pub const _USE_DECLSPECS_FOR_SAL: u32 = 0;
13pub const _USE_ATTRIBUTES_FOR_SAL: u32 = 0;
14pub const _CRT_PACKING: u32 = 8;
15pub const _HAS_EXCEPTIONS: u32 = 1;
16pub const _STL_LANG: u32 = 0;
17pub const _HAS_CXX17: u32 = 0;
18pub const _HAS_CXX20: u32 = 0;
19pub const _HAS_CXX23: u32 = 0;
20pub const _HAS_NODISCARD: u32 = 0;
21pub const _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE: u32 = 1;
22pub const _CRT_BUILD_DESKTOP_APP: u32 = 1;
23pub const _ARGMAX: u32 = 100;
24pub const _CRT_INT_MAX: u32 = 2147483647;
25pub const _CRT_FUNCTIONS_REQUIRED: u32 = 1;
26pub const _CRT_HAS_CXX17: u32 = 0;
27pub const _CRT_HAS_C11: u32 = 1;
28pub const _CRT_INTERNAL_NONSTDC_NAMES: u32 = 1;
29pub const __STDC_SECURE_LIB__: u32 = 200411;
30pub const __GOT_SECURE_LIB__: u32 = 200411;
31pub const __STDC_WANT_SECURE_LIB__: u32 = 1;
32pub const _SECURECRT_FILL_BUFFER_PATTERN: u32 = 254;
33pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES: u32 = 0;
34pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT: u32 = 0;
35pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES: u32 = 1;
36pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY: u32 = 0;
37pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY: u32 = 0;
38pub const _MAX_ITOSTR_BASE16_COUNT: u32 = 9;
39pub const _MAX_ITOSTR_BASE10_COUNT: u32 = 12;
40pub const _MAX_ITOSTR_BASE8_COUNT: u32 = 12;
41pub const _MAX_ITOSTR_BASE2_COUNT: u32 = 33;
42pub const _MAX_LTOSTR_BASE16_COUNT: u32 = 9;
43pub const _MAX_LTOSTR_BASE10_COUNT: u32 = 12;
44pub const _MAX_LTOSTR_BASE8_COUNT: u32 = 12;
45pub const _MAX_LTOSTR_BASE2_COUNT: u32 = 33;
46pub const _MAX_ULTOSTR_BASE16_COUNT: u32 = 9;
47pub const _MAX_ULTOSTR_BASE10_COUNT: u32 = 11;
48pub const _MAX_ULTOSTR_BASE8_COUNT: u32 = 12;
49pub const _MAX_ULTOSTR_BASE2_COUNT: u32 = 33;
50pub const _MAX_I64TOSTR_BASE16_COUNT: u32 = 17;
51pub const _MAX_I64TOSTR_BASE10_COUNT: u32 = 21;
52pub const _MAX_I64TOSTR_BASE8_COUNT: u32 = 23;
53pub const _MAX_I64TOSTR_BASE2_COUNT: u32 = 65;
54pub const _MAX_U64TOSTR_BASE16_COUNT: u32 = 17;
55pub const _MAX_U64TOSTR_BASE10_COUNT: u32 = 21;
56pub const _MAX_U64TOSTR_BASE8_COUNT: u32 = 23;
57pub const _MAX_U64TOSTR_BASE2_COUNT: u32 = 65;
58pub const CHAR_BIT: u32 = 8;
59pub const SCHAR_MIN: i32 = -128;
60pub const SCHAR_MAX: u32 = 127;
61pub const UCHAR_MAX: u32 = 255;
62pub const CHAR_MIN: i32 = -128;
63pub const CHAR_MAX: u32 = 127;
64pub const MB_LEN_MAX: u32 = 5;
65pub const SHRT_MIN: i32 = -32768;
66pub const SHRT_MAX: u32 = 32767;
67pub const USHRT_MAX: u32 = 65535;
68pub const INT_MIN: i32 = -2147483648;
69pub const INT_MAX: u32 = 2147483647;
70pub const UINT_MAX: u32 = 4294967295;
71pub const LONG_MIN: i32 = -2147483648;
72pub const LONG_MAX: u32 = 2147483647;
73pub const ULONG_MAX: u32 = 4294967295;
74pub const EXIT_SUCCESS: u32 = 0;
75pub const EXIT_FAILURE: u32 = 1;
76pub const _WRITE_ABORT_MSG: u32 = 1;
77pub const _CALL_REPORTFAULT: u32 = 2;
78pub const _OUT_TO_DEFAULT: u32 = 0;
79pub const _OUT_TO_STDERR: u32 = 1;
80pub const _OUT_TO_MSGBOX: u32 = 2;
81pub const _REPORT_ERRMODE: u32 = 3;
82pub const RAND_MAX: u32 = 32767;
83pub const _CVTBUFSIZE: u32 = 349;
84pub const _MAX_PATH: u32 = 260;
85pub const _MAX_DRIVE: u32 = 3;
86pub const _MAX_DIR: u32 = 256;
87pub const _MAX_FNAME: u32 = 256;
88pub const _MAX_EXT: u32 = 256;
89pub const _MAX_ENV: u32 = 32767;
90pub const LZHAM_DLL_VERSION: u32 = 4104;
91pub const LZHAM_64BIT: u32 = 1;
92pub const LZHAM_MIN_DICT_SIZE_LOG2: u32 = 15;
93pub const LZHAM_MAX_DICT_SIZE_LOG2_X86: u32 = 26;
94pub const LZHAM_MAX_DICT_SIZE_LOG2_X64: u32 = 29;
95pub const LZHAM_MAX_HELPER_THREADS: u32 = 64;
96pub const LZHAM_Z_ADLER32_INIT: u32 = 1;
97pub const LZHAM_Z_CRC32_INIT: u32 = 0;
98pub const LZHAM_Z_DEFLATED: u32 = 8;
99pub const LZHAM_Z_LZHAM: u32 = 14;
100pub const LZHAM_Z_VERSION: &[u8; 7] = b"10.8.1\0";
101pub const LZHAM_Z_VERNUM: u32 = 43024;
102pub const LZHAM_Z_VER_MAJOR: u32 = 10;
103pub const LZHAM_Z_VER_MINOR: u32 = 8;
104pub const LZHAM_Z_VER_REVISION: u32 = 1;
105pub const LZHAM_Z_VER_SUBREVISION: u32 = 0;
106pub const LZHAM_Z_DEFAULT_WINDOW_BITS: u32 = 15;
107pub const LZHAM_Z_BINARY: u32 = 0;
108pub const LZHAM_Z_TEXT: u32 = 1;
109pub const LZHAM_Z_ASCII: u32 = 1;
110pub const LZHAM_Z_UNKNOWN: u32 = 2;
111pub type va_list = *mut ::std::os::raw::c_char;
112extern "C" {
113    pub fn __va_start(arg1: *mut *mut ::std::os::raw::c_char, ...);
114}
115pub type __vcrt_bool = bool;
116pub type wchar_t = ::std::os::raw::c_ushort;
117extern "C" {
118    pub fn __security_init_cookie();
119}
120extern "C" {
121    pub fn __security_check_cookie(_StackCookie: usize);
122}
123extern "C" {
124    pub fn __report_gsfailure(_StackCookie: usize) -> !;
125}
126extern "C" {
127    pub static mut __security_cookie: usize;
128}
129pub type __crt_bool = bool;
130extern "C" {
131    pub fn _invalid_parameter_noinfo();
132}
133extern "C" {
134    pub fn _invalid_parameter_noinfo_noreturn() -> !;
135}
136extern "C" {
137    pub fn _invoke_watson(
138        _Expression: *const wchar_t,
139        _FunctionName: *const wchar_t,
140        _FileName: *const wchar_t,
141        _LineNo: ::std::os::raw::c_uint,
142        _Reserved: usize,
143    ) -> !;
144}
145pub type errno_t = ::std::os::raw::c_int;
146pub type wint_t = ::std::os::raw::c_ushort;
147pub type wctype_t = ::std::os::raw::c_ushort;
148pub type __time32_t = ::std::os::raw::c_long;
149pub type __time64_t = ::std::os::raw::c_longlong;
150#[repr(C)]
151#[derive(Debug, Copy, Clone)]
152pub struct __crt_locale_data_public {
153    pub _locale_pctype: *const ::std::os::raw::c_ushort,
154    pub _locale_mb_cur_max: ::std::os::raw::c_int,
155    pub _locale_lc_codepage: ::std::os::raw::c_uint,
156}
157#[test]
158fn bindgen_test_layout___crt_locale_data_public() {
159    const UNINIT: ::std::mem::MaybeUninit<__crt_locale_data_public> =
160        ::std::mem::MaybeUninit::uninit();
161    let ptr = UNINIT.as_ptr();
162    assert_eq!(
163        ::std::mem::size_of::<__crt_locale_data_public>(),
164        16usize,
165        concat!("Size of: ", stringify!(__crt_locale_data_public))
166    );
167    assert_eq!(
168        ::std::mem::align_of::<__crt_locale_data_public>(),
169        8usize,
170        concat!("Alignment of ", stringify!(__crt_locale_data_public))
171    );
172    assert_eq!(
173        unsafe { ::std::ptr::addr_of!((*ptr)._locale_pctype) as usize - ptr as usize },
174        0usize,
175        concat!(
176            "Offset of field: ",
177            stringify!(__crt_locale_data_public),
178            "::",
179            stringify!(_locale_pctype)
180        )
181    );
182    assert_eq!(
183        unsafe { ::std::ptr::addr_of!((*ptr)._locale_mb_cur_max) as usize - ptr as usize },
184        8usize,
185        concat!(
186            "Offset of field: ",
187            stringify!(__crt_locale_data_public),
188            "::",
189            stringify!(_locale_mb_cur_max)
190        )
191    );
192    assert_eq!(
193        unsafe { ::std::ptr::addr_of!((*ptr)._locale_lc_codepage) as usize - ptr as usize },
194        12usize,
195        concat!(
196            "Offset of field: ",
197            stringify!(__crt_locale_data_public),
198            "::",
199            stringify!(_locale_lc_codepage)
200        )
201    );
202}
203#[repr(C)]
204#[derive(Debug, Copy, Clone)]
205pub struct __crt_locale_pointers {
206    pub locinfo: *mut __crt_locale_data,
207    pub mbcinfo: *mut __crt_multibyte_data,
208}
209#[test]
210fn bindgen_test_layout___crt_locale_pointers() {
211    const UNINIT: ::std::mem::MaybeUninit<__crt_locale_pointers> =
212        ::std::mem::MaybeUninit::uninit();
213    let ptr = UNINIT.as_ptr();
214    assert_eq!(
215        ::std::mem::size_of::<__crt_locale_pointers>(),
216        16usize,
217        concat!("Size of: ", stringify!(__crt_locale_pointers))
218    );
219    assert_eq!(
220        ::std::mem::align_of::<__crt_locale_pointers>(),
221        8usize,
222        concat!("Alignment of ", stringify!(__crt_locale_pointers))
223    );
224    assert_eq!(
225        unsafe { ::std::ptr::addr_of!((*ptr).locinfo) as usize - ptr as usize },
226        0usize,
227        concat!(
228            "Offset of field: ",
229            stringify!(__crt_locale_pointers),
230            "::",
231            stringify!(locinfo)
232        )
233    );
234    assert_eq!(
235        unsafe { ::std::ptr::addr_of!((*ptr).mbcinfo) as usize - ptr as usize },
236        8usize,
237        concat!(
238            "Offset of field: ",
239            stringify!(__crt_locale_pointers),
240            "::",
241            stringify!(mbcinfo)
242        )
243    );
244}
245pub type _locale_t = *mut __crt_locale_pointers;
246#[repr(C)]
247#[derive(Debug, Copy, Clone)]
248pub struct _Mbstatet {
249    pub _Wchar: ::std::os::raw::c_ulong,
250    pub _Byte: ::std::os::raw::c_ushort,
251    pub _State: ::std::os::raw::c_ushort,
252}
253#[test]
254fn bindgen_test_layout__Mbstatet() {
255    const UNINIT: ::std::mem::MaybeUninit<_Mbstatet> = ::std::mem::MaybeUninit::uninit();
256    let ptr = UNINIT.as_ptr();
257    assert_eq!(
258        ::std::mem::size_of::<_Mbstatet>(),
259        8usize,
260        concat!("Size of: ", stringify!(_Mbstatet))
261    );
262    assert_eq!(
263        ::std::mem::align_of::<_Mbstatet>(),
264        4usize,
265        concat!("Alignment of ", stringify!(_Mbstatet))
266    );
267    assert_eq!(
268        unsafe { ::std::ptr::addr_of!((*ptr)._Wchar) as usize - ptr as usize },
269        0usize,
270        concat!(
271            "Offset of field: ",
272            stringify!(_Mbstatet),
273            "::",
274            stringify!(_Wchar)
275        )
276    );
277    assert_eq!(
278        unsafe { ::std::ptr::addr_of!((*ptr)._Byte) as usize - ptr as usize },
279        4usize,
280        concat!(
281            "Offset of field: ",
282            stringify!(_Mbstatet),
283            "::",
284            stringify!(_Byte)
285        )
286    );
287    assert_eq!(
288        unsafe { ::std::ptr::addr_of!((*ptr)._State) as usize - ptr as usize },
289        6usize,
290        concat!(
291            "Offset of field: ",
292            stringify!(_Mbstatet),
293            "::",
294            stringify!(_State)
295        )
296    );
297}
298pub type mbstate_t = _Mbstatet;
299pub type time_t = __time64_t;
300pub type rsize_t = usize;
301extern "C" {
302    pub fn _calloc_base(_Count: usize, _Size: usize) -> *mut ::std::os::raw::c_void;
303}
304extern "C" {
305    pub fn calloc(
306        _Count: ::std::os::raw::c_ulonglong,
307        _Size: ::std::os::raw::c_ulonglong,
308    ) -> *mut ::std::os::raw::c_void;
309}
310extern "C" {
311    pub fn _callnewh(_Size: usize) -> ::std::os::raw::c_int;
312}
313extern "C" {
314    pub fn _expand(
315        _Block: *mut ::std::os::raw::c_void,
316        _Size: usize,
317    ) -> *mut ::std::os::raw::c_void;
318}
319extern "C" {
320    pub fn _free_base(_Block: *mut ::std::os::raw::c_void);
321}
322extern "C" {
323    pub fn free(_Block: *mut ::std::os::raw::c_void);
324}
325extern "C" {
326    pub fn _malloc_base(_Size: usize) -> *mut ::std::os::raw::c_void;
327}
328extern "C" {
329    pub fn malloc(_Size: ::std::os::raw::c_ulonglong) -> *mut ::std::os::raw::c_void;
330}
331extern "C" {
332    pub fn _msize_base(_Block: *mut ::std::os::raw::c_void) -> usize;
333}
334extern "C" {
335    pub fn _msize(_Block: *mut ::std::os::raw::c_void) -> usize;
336}
337extern "C" {
338    pub fn _realloc_base(
339        _Block: *mut ::std::os::raw::c_void,
340        _Size: usize,
341    ) -> *mut ::std::os::raw::c_void;
342}
343extern "C" {
344    pub fn realloc(
345        _Block: *mut ::std::os::raw::c_void,
346        _Size: ::std::os::raw::c_ulonglong,
347    ) -> *mut ::std::os::raw::c_void;
348}
349extern "C" {
350    pub fn _recalloc_base(
351        _Block: *mut ::std::os::raw::c_void,
352        _Count: usize,
353        _Size: usize,
354    ) -> *mut ::std::os::raw::c_void;
355}
356extern "C" {
357    pub fn _recalloc(
358        _Block: *mut ::std::os::raw::c_void,
359        _Count: usize,
360        _Size: usize,
361    ) -> *mut ::std::os::raw::c_void;
362}
363extern "C" {
364    pub fn _aligned_free(_Block: *mut ::std::os::raw::c_void);
365}
366extern "C" {
367    pub fn _aligned_malloc(_Size: usize, _Alignment: usize) -> *mut ::std::os::raw::c_void;
368}
369extern "C" {
370    pub fn _aligned_offset_malloc(
371        _Size: usize,
372        _Alignment: usize,
373        _Offset: usize,
374    ) -> *mut ::std::os::raw::c_void;
375}
376extern "C" {
377    pub fn _aligned_msize(
378        _Block: *mut ::std::os::raw::c_void,
379        _Alignment: usize,
380        _Offset: usize,
381    ) -> usize;
382}
383extern "C" {
384    pub fn _aligned_offset_realloc(
385        _Block: *mut ::std::os::raw::c_void,
386        _Size: usize,
387        _Alignment: usize,
388        _Offset: usize,
389    ) -> *mut ::std::os::raw::c_void;
390}
391extern "C" {
392    pub fn _aligned_offset_recalloc(
393        _Block: *mut ::std::os::raw::c_void,
394        _Count: usize,
395        _Size: usize,
396        _Alignment: usize,
397        _Offset: usize,
398    ) -> *mut ::std::os::raw::c_void;
399}
400extern "C" {
401    pub fn _aligned_realloc(
402        _Block: *mut ::std::os::raw::c_void,
403        _Size: usize,
404        _Alignment: usize,
405    ) -> *mut ::std::os::raw::c_void;
406}
407extern "C" {
408    pub fn _aligned_recalloc(
409        _Block: *mut ::std::os::raw::c_void,
410        _Count: usize,
411        _Size: usize,
412        _Alignment: usize,
413    ) -> *mut ::std::os::raw::c_void;
414}
415pub type max_align_t = f64;
416pub type _CoreCrtSecureSearchSortCompareFunction = ::std::option::Option<
417    unsafe extern "C" fn(
418        arg1: *mut ::std::os::raw::c_void,
419        arg2: *const ::std::os::raw::c_void,
420        arg3: *const ::std::os::raw::c_void,
421    ) -> ::std::os::raw::c_int,
422>;
423pub type _CoreCrtNonSecureSearchSortCompareFunction = ::std::option::Option<
424    unsafe extern "C" fn(
425        arg1: *const ::std::os::raw::c_void,
426        arg2: *const ::std::os::raw::c_void,
427    ) -> ::std::os::raw::c_int,
428>;
429extern "C" {
430    pub fn bsearch_s(
431        _Key: *const ::std::os::raw::c_void,
432        _Base: *const ::std::os::raw::c_void,
433        _NumOfElements: rsize_t,
434        _SizeOfElements: rsize_t,
435        _CompareFunction: _CoreCrtSecureSearchSortCompareFunction,
436        _Context: *mut ::std::os::raw::c_void,
437    ) -> *mut ::std::os::raw::c_void;
438}
439extern "C" {
440    pub fn qsort_s(
441        _Base: *mut ::std::os::raw::c_void,
442        _NumOfElements: rsize_t,
443        _SizeOfElements: rsize_t,
444        _CompareFunction: _CoreCrtSecureSearchSortCompareFunction,
445        _Context: *mut ::std::os::raw::c_void,
446    );
447}
448extern "C" {
449    pub fn bsearch(
450        _Key: *const ::std::os::raw::c_void,
451        _Base: *const ::std::os::raw::c_void,
452        _NumOfElements: usize,
453        _SizeOfElements: usize,
454        _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction,
455    ) -> *mut ::std::os::raw::c_void;
456}
457extern "C" {
458    pub fn qsort(
459        _Base: *mut ::std::os::raw::c_void,
460        _NumOfElements: usize,
461        _SizeOfElements: usize,
462        _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction,
463    );
464}
465extern "C" {
466    pub fn _lfind_s(
467        _Key: *const ::std::os::raw::c_void,
468        _Base: *const ::std::os::raw::c_void,
469        _NumOfElements: *mut ::std::os::raw::c_uint,
470        _SizeOfElements: usize,
471        _CompareFunction: _CoreCrtSecureSearchSortCompareFunction,
472        _Context: *mut ::std::os::raw::c_void,
473    ) -> *mut ::std::os::raw::c_void;
474}
475extern "C" {
476    pub fn _lfind(
477        _Key: *const ::std::os::raw::c_void,
478        _Base: *const ::std::os::raw::c_void,
479        _NumOfElements: *mut ::std::os::raw::c_uint,
480        _SizeOfElements: ::std::os::raw::c_uint,
481        _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction,
482    ) -> *mut ::std::os::raw::c_void;
483}
484extern "C" {
485    pub fn _lsearch_s(
486        _Key: *const ::std::os::raw::c_void,
487        _Base: *mut ::std::os::raw::c_void,
488        _NumOfElements: *mut ::std::os::raw::c_uint,
489        _SizeOfElements: usize,
490        _CompareFunction: _CoreCrtSecureSearchSortCompareFunction,
491        _Context: *mut ::std::os::raw::c_void,
492    ) -> *mut ::std::os::raw::c_void;
493}
494extern "C" {
495    pub fn _lsearch(
496        _Key: *const ::std::os::raw::c_void,
497        _Base: *mut ::std::os::raw::c_void,
498        _NumOfElements: *mut ::std::os::raw::c_uint,
499        _SizeOfElements: ::std::os::raw::c_uint,
500        _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction,
501    ) -> *mut ::std::os::raw::c_void;
502}
503extern "C" {
504    pub fn lfind(
505        _Key: *const ::std::os::raw::c_void,
506        _Base: *const ::std::os::raw::c_void,
507        _NumOfElements: *mut ::std::os::raw::c_uint,
508        _SizeOfElements: ::std::os::raw::c_uint,
509        _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction,
510    ) -> *mut ::std::os::raw::c_void;
511}
512extern "C" {
513    pub fn lsearch(
514        _Key: *const ::std::os::raw::c_void,
515        _Base: *mut ::std::os::raw::c_void,
516        _NumOfElements: *mut ::std::os::raw::c_uint,
517        _SizeOfElements: ::std::os::raw::c_uint,
518        _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction,
519    ) -> *mut ::std::os::raw::c_void;
520}
521extern "C" {
522    pub fn _itow_s(
523        _Value: ::std::os::raw::c_int,
524        _Buffer: *mut wchar_t,
525        _BufferCount: usize,
526        _Radix: ::std::os::raw::c_int,
527    ) -> errno_t;
528}
529extern "C" {
530    pub fn _itow(
531        _Value: ::std::os::raw::c_int,
532        _Buffer: *mut wchar_t,
533        _Radix: ::std::os::raw::c_int,
534    ) -> *mut wchar_t;
535}
536extern "C" {
537    pub fn _ltow_s(
538        _Value: ::std::os::raw::c_long,
539        _Buffer: *mut wchar_t,
540        _BufferCount: usize,
541        _Radix: ::std::os::raw::c_int,
542    ) -> errno_t;
543}
544extern "C" {
545    pub fn _ltow(
546        _Value: ::std::os::raw::c_long,
547        _Buffer: *mut wchar_t,
548        _Radix: ::std::os::raw::c_int,
549    ) -> *mut wchar_t;
550}
551extern "C" {
552    pub fn _ultow_s(
553        _Value: ::std::os::raw::c_ulong,
554        _Buffer: *mut wchar_t,
555        _BufferCount: usize,
556        _Radix: ::std::os::raw::c_int,
557    ) -> errno_t;
558}
559extern "C" {
560    pub fn _ultow(
561        _Value: ::std::os::raw::c_ulong,
562        _Buffer: *mut wchar_t,
563        _Radix: ::std::os::raw::c_int,
564    ) -> *mut wchar_t;
565}
566extern "C" {
567    pub fn wcstod(_String: *const wchar_t, _EndPtr: *mut *mut wchar_t) -> f64;
568}
569extern "C" {
570    pub fn _wcstod_l(
571        _String: *const wchar_t,
572        _EndPtr: *mut *mut wchar_t,
573        _Locale: _locale_t,
574    ) -> f64;
575}
576extern "C" {
577    pub fn wcstol(
578        _String: *const wchar_t,
579        _EndPtr: *mut *mut wchar_t,
580        _Radix: ::std::os::raw::c_int,
581    ) -> ::std::os::raw::c_long;
582}
583extern "C" {
584    pub fn _wcstol_l(
585        _String: *const wchar_t,
586        _EndPtr: *mut *mut wchar_t,
587        _Radix: ::std::os::raw::c_int,
588        _Locale: _locale_t,
589    ) -> ::std::os::raw::c_long;
590}
591extern "C" {
592    pub fn wcstoll(
593        _String: *const wchar_t,
594        _EndPtr: *mut *mut wchar_t,
595        _Radix: ::std::os::raw::c_int,
596    ) -> ::std::os::raw::c_longlong;
597}
598extern "C" {
599    pub fn _wcstoll_l(
600        _String: *const wchar_t,
601        _EndPtr: *mut *mut wchar_t,
602        _Radix: ::std::os::raw::c_int,
603        _Locale: _locale_t,
604    ) -> ::std::os::raw::c_longlong;
605}
606extern "C" {
607    pub fn wcstoul(
608        _String: *const wchar_t,
609        _EndPtr: *mut *mut wchar_t,
610        _Radix: ::std::os::raw::c_int,
611    ) -> ::std::os::raw::c_ulong;
612}
613extern "C" {
614    pub fn _wcstoul_l(
615        _String: *const wchar_t,
616        _EndPtr: *mut *mut wchar_t,
617        _Radix: ::std::os::raw::c_int,
618        _Locale: _locale_t,
619    ) -> ::std::os::raw::c_ulong;
620}
621extern "C" {
622    pub fn wcstoull(
623        _String: *const wchar_t,
624        _EndPtr: *mut *mut wchar_t,
625        _Radix: ::std::os::raw::c_int,
626    ) -> ::std::os::raw::c_ulonglong;
627}
628extern "C" {
629    pub fn _wcstoull_l(
630        _String: *const wchar_t,
631        _EndPtr: *mut *mut wchar_t,
632        _Radix: ::std::os::raw::c_int,
633        _Locale: _locale_t,
634    ) -> ::std::os::raw::c_ulonglong;
635}
636extern "C" {
637    pub fn wcstold(_String: *const wchar_t, _EndPtr: *mut *mut wchar_t) -> f64;
638}
639extern "C" {
640    pub fn _wcstold_l(
641        _String: *const wchar_t,
642        _EndPtr: *mut *mut wchar_t,
643        _Locale: _locale_t,
644    ) -> f64;
645}
646extern "C" {
647    pub fn wcstof(_String: *const wchar_t, _EndPtr: *mut *mut wchar_t) -> f32;
648}
649extern "C" {
650    pub fn _wcstof_l(
651        _String: *const wchar_t,
652        _EndPtr: *mut *mut wchar_t,
653        _Locale: _locale_t,
654    ) -> f32;
655}
656extern "C" {
657    pub fn _wtof(_String: *const wchar_t) -> f64;
658}
659extern "C" {
660    pub fn _wtof_l(_String: *const wchar_t, _Locale: _locale_t) -> f64;
661}
662extern "C" {
663    pub fn _wtoi(_String: *const wchar_t) -> ::std::os::raw::c_int;
664}
665extern "C" {
666    pub fn _wtoi_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_int;
667}
668extern "C" {
669    pub fn _wtol(_String: *const wchar_t) -> ::std::os::raw::c_long;
670}
671extern "C" {
672    pub fn _wtol_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_long;
673}
674extern "C" {
675    pub fn _wtoll(_String: *const wchar_t) -> ::std::os::raw::c_longlong;
676}
677extern "C" {
678    pub fn _wtoll_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_longlong;
679}
680extern "C" {
681    pub fn _i64tow_s(
682        _Value: ::std::os::raw::c_longlong,
683        _Buffer: *mut wchar_t,
684        _BufferCount: usize,
685        _Radix: ::std::os::raw::c_int,
686    ) -> errno_t;
687}
688extern "C" {
689    pub fn _i64tow(
690        _Value: ::std::os::raw::c_longlong,
691        _Buffer: *mut wchar_t,
692        _Radix: ::std::os::raw::c_int,
693    ) -> *mut wchar_t;
694}
695extern "C" {
696    pub fn _ui64tow_s(
697        _Value: ::std::os::raw::c_ulonglong,
698        _Buffer: *mut wchar_t,
699        _BufferCount: usize,
700        _Radix: ::std::os::raw::c_int,
701    ) -> errno_t;
702}
703extern "C" {
704    pub fn _ui64tow(
705        _Value: ::std::os::raw::c_ulonglong,
706        _Buffer: *mut wchar_t,
707        _Radix: ::std::os::raw::c_int,
708    ) -> *mut wchar_t;
709}
710extern "C" {
711    pub fn _wtoi64(_String: *const wchar_t) -> ::std::os::raw::c_longlong;
712}
713extern "C" {
714    pub fn _wtoi64_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_longlong;
715}
716extern "C" {
717    pub fn _wcstoi64(
718        _String: *const wchar_t,
719        _EndPtr: *mut *mut wchar_t,
720        _Radix: ::std::os::raw::c_int,
721    ) -> ::std::os::raw::c_longlong;
722}
723extern "C" {
724    pub fn _wcstoi64_l(
725        _String: *const wchar_t,
726        _EndPtr: *mut *mut wchar_t,
727        _Radix: ::std::os::raw::c_int,
728        _Locale: _locale_t,
729    ) -> ::std::os::raw::c_longlong;
730}
731extern "C" {
732    pub fn _wcstoui64(
733        _String: *const wchar_t,
734        _EndPtr: *mut *mut wchar_t,
735        _Radix: ::std::os::raw::c_int,
736    ) -> ::std::os::raw::c_ulonglong;
737}
738extern "C" {
739    pub fn _wcstoui64_l(
740        _String: *const wchar_t,
741        _EndPtr: *mut *mut wchar_t,
742        _Radix: ::std::os::raw::c_int,
743        _Locale: _locale_t,
744    ) -> ::std::os::raw::c_ulonglong;
745}
746extern "C" {
747    pub fn _wfullpath(
748        _Buffer: *mut wchar_t,
749        _Path: *const wchar_t,
750        _BufferCount: usize,
751    ) -> *mut wchar_t;
752}
753extern "C" {
754    pub fn _wmakepath_s(
755        _Buffer: *mut wchar_t,
756        _BufferCount: usize,
757        _Drive: *const wchar_t,
758        _Dir: *const wchar_t,
759        _Filename: *const wchar_t,
760        _Ext: *const wchar_t,
761    ) -> errno_t;
762}
763extern "C" {
764    pub fn _wmakepath(
765        _Buffer: *mut wchar_t,
766        _Drive: *const wchar_t,
767        _Dir: *const wchar_t,
768        _Filename: *const wchar_t,
769        _Ext: *const wchar_t,
770    );
771}
772extern "C" {
773    pub fn _wperror(_ErrorMessage: *const wchar_t);
774}
775extern "C" {
776    pub fn _wsplitpath(
777        _FullPath: *const wchar_t,
778        _Drive: *mut wchar_t,
779        _Dir: *mut wchar_t,
780        _Filename: *mut wchar_t,
781        _Ext: *mut wchar_t,
782    );
783}
784extern "C" {
785    pub fn _wsplitpath_s(
786        _FullPath: *const wchar_t,
787        _Drive: *mut wchar_t,
788        _DriveCount: usize,
789        _Dir: *mut wchar_t,
790        _DirCount: usize,
791        _Filename: *mut wchar_t,
792        _FilenameCount: usize,
793        _Ext: *mut wchar_t,
794        _ExtCount: usize,
795    ) -> errno_t;
796}
797extern "C" {
798    pub fn _wdupenv_s(
799        _Buffer: *mut *mut wchar_t,
800        _BufferCount: *mut usize,
801        _VarName: *const wchar_t,
802    ) -> errno_t;
803}
804extern "C" {
805    pub fn _wgetenv(_VarName: *const wchar_t) -> *mut wchar_t;
806}
807extern "C" {
808    pub fn _wgetenv_s(
809        _RequiredCount: *mut usize,
810        _Buffer: *mut wchar_t,
811        _BufferCount: usize,
812        _VarName: *const wchar_t,
813    ) -> errno_t;
814}
815extern "C" {
816    pub fn _wputenv(_EnvString: *const wchar_t) -> ::std::os::raw::c_int;
817}
818extern "C" {
819    pub fn _wputenv_s(_Name: *const wchar_t, _Value: *const wchar_t) -> errno_t;
820}
821extern "C" {
822    pub fn _wsearchenv_s(
823        _Filename: *const wchar_t,
824        _VarName: *const wchar_t,
825        _Buffer: *mut wchar_t,
826        _BufferCount: usize,
827    ) -> errno_t;
828}
829extern "C" {
830    pub fn _wsearchenv(
831        _Filename: *const wchar_t,
832        _VarName: *const wchar_t,
833        _ResultPath: *mut wchar_t,
834    );
835}
836extern "C" {
837    pub fn _wsystem(_Command: *const wchar_t) -> ::std::os::raw::c_int;
838}
839extern "C" {
840    pub fn _swab(
841        _Buf1: *mut ::std::os::raw::c_char,
842        _Buf2: *mut ::std::os::raw::c_char,
843        _SizeInBytes: ::std::os::raw::c_int,
844    );
845}
846extern "C" {
847    pub fn exit(_Code: ::std::os::raw::c_int) -> !;
848}
849extern "C" {
850    pub fn _exit(_Code: ::std::os::raw::c_int) -> !;
851}
852extern "C" {
853    pub fn _Exit(_Code: ::std::os::raw::c_int) -> !;
854}
855extern "C" {
856    pub fn quick_exit(_Code: ::std::os::raw::c_int) -> !;
857}
858extern "C" {
859    pub fn abort() -> !;
860}
861extern "C" {
862    pub fn _set_abort_behavior(
863        _Flags: ::std::os::raw::c_uint,
864        _Mask: ::std::os::raw::c_uint,
865    ) -> ::std::os::raw::c_uint;
866}
867pub type _onexit_t = ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>;
868extern "C" {
869    pub fn atexit(arg1: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
870}
871extern "C" {
872    pub fn _onexit(_Func: _onexit_t) -> _onexit_t;
873}
874extern "C" {
875    pub fn at_quick_exit(
876        arg1: ::std::option::Option<unsafe extern "C" fn()>,
877    ) -> ::std::os::raw::c_int;
878}
879pub type _purecall_handler = ::std::option::Option<unsafe extern "C" fn()>;
880pub type _invalid_parameter_handler = ::std::option::Option<
881    unsafe extern "C" fn(
882        arg1: *const wchar_t,
883        arg2: *const wchar_t,
884        arg3: *const wchar_t,
885        arg4: ::std::os::raw::c_uint,
886        arg5: usize,
887    ),
888>;
889extern "C" {
890    pub fn _set_purecall_handler(_Handler: _purecall_handler) -> _purecall_handler;
891}
892extern "C" {
893    pub fn _get_purecall_handler() -> _purecall_handler;
894}
895extern "C" {
896    pub fn _set_invalid_parameter_handler(
897        _Handler: _invalid_parameter_handler,
898    ) -> _invalid_parameter_handler;
899}
900extern "C" {
901    pub fn _get_invalid_parameter_handler() -> _invalid_parameter_handler;
902}
903extern "C" {
904    pub fn _set_thread_local_invalid_parameter_handler(
905        _Handler: _invalid_parameter_handler,
906    ) -> _invalid_parameter_handler;
907}
908extern "C" {
909    pub fn _get_thread_local_invalid_parameter_handler() -> _invalid_parameter_handler;
910}
911extern "C" {
912    pub fn _set_error_mode(_Mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
913}
914extern "C" {
915    pub fn _errno() -> *mut ::std::os::raw::c_int;
916}
917extern "C" {
918    pub fn _set_errno(_Value: ::std::os::raw::c_int) -> errno_t;
919}
920extern "C" {
921    pub fn _get_errno(_Value: *mut ::std::os::raw::c_int) -> errno_t;
922}
923extern "C" {
924    pub fn __doserrno() -> *mut ::std::os::raw::c_ulong;
925}
926extern "C" {
927    pub fn _set_doserrno(_Value: ::std::os::raw::c_ulong) -> errno_t;
928}
929extern "C" {
930    pub fn _get_doserrno(_Value: *mut ::std::os::raw::c_ulong) -> errno_t;
931}
932extern "C" {
933    pub fn __sys_errlist() -> *mut *mut ::std::os::raw::c_char;
934}
935extern "C" {
936    pub fn __sys_nerr() -> *mut ::std::os::raw::c_int;
937}
938extern "C" {
939    pub fn perror(_ErrMsg: *const ::std::os::raw::c_char);
940}
941extern "C" {
942    pub fn __p__pgmptr() -> *mut *mut ::std::os::raw::c_char;
943}
944extern "C" {
945    pub fn __p__wpgmptr() -> *mut *mut wchar_t;
946}
947extern "C" {
948    pub fn __p__fmode() -> *mut ::std::os::raw::c_int;
949}
950extern "C" {
951    pub fn _get_pgmptr(_Value: *mut *mut ::std::os::raw::c_char) -> errno_t;
952}
953extern "C" {
954    pub fn _get_wpgmptr(_Value: *mut *mut wchar_t) -> errno_t;
955}
956extern "C" {
957    pub fn _set_fmode(_Mode: ::std::os::raw::c_int) -> errno_t;
958}
959extern "C" {
960    pub fn _get_fmode(_PMode: *mut ::std::os::raw::c_int) -> errno_t;
961}
962#[repr(C)]
963#[derive(Debug, Copy, Clone)]
964pub struct _div_t {
965    pub quot: ::std::os::raw::c_int,
966    pub rem: ::std::os::raw::c_int,
967}
968#[test]
969fn bindgen_test_layout__div_t() {
970    const UNINIT: ::std::mem::MaybeUninit<_div_t> = ::std::mem::MaybeUninit::uninit();
971    let ptr = UNINIT.as_ptr();
972    assert_eq!(
973        ::std::mem::size_of::<_div_t>(),
974        8usize,
975        concat!("Size of: ", stringify!(_div_t))
976    );
977    assert_eq!(
978        ::std::mem::align_of::<_div_t>(),
979        4usize,
980        concat!("Alignment of ", stringify!(_div_t))
981    );
982    assert_eq!(
983        unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
984        0usize,
985        concat!(
986            "Offset of field: ",
987            stringify!(_div_t),
988            "::",
989            stringify!(quot)
990        )
991    );
992    assert_eq!(
993        unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
994        4usize,
995        concat!(
996            "Offset of field: ",
997            stringify!(_div_t),
998            "::",
999            stringify!(rem)
1000        )
1001    );
1002}
1003pub type div_t = _div_t;
1004#[repr(C)]
1005#[derive(Debug, Copy, Clone)]
1006pub struct _ldiv_t {
1007    pub quot: ::std::os::raw::c_long,
1008    pub rem: ::std::os::raw::c_long,
1009}
1010#[test]
1011fn bindgen_test_layout__ldiv_t() {
1012    const UNINIT: ::std::mem::MaybeUninit<_ldiv_t> = ::std::mem::MaybeUninit::uninit();
1013    let ptr = UNINIT.as_ptr();
1014    assert_eq!(
1015        ::std::mem::size_of::<_ldiv_t>(),
1016        8usize,
1017        concat!("Size of: ", stringify!(_ldiv_t))
1018    );
1019    assert_eq!(
1020        ::std::mem::align_of::<_ldiv_t>(),
1021        4usize,
1022        concat!("Alignment of ", stringify!(_ldiv_t))
1023    );
1024    assert_eq!(
1025        unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
1026        0usize,
1027        concat!(
1028            "Offset of field: ",
1029            stringify!(_ldiv_t),
1030            "::",
1031            stringify!(quot)
1032        )
1033    );
1034    assert_eq!(
1035        unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
1036        4usize,
1037        concat!(
1038            "Offset of field: ",
1039            stringify!(_ldiv_t),
1040            "::",
1041            stringify!(rem)
1042        )
1043    );
1044}
1045pub type ldiv_t = _ldiv_t;
1046#[repr(C)]
1047#[derive(Debug, Copy, Clone)]
1048pub struct _lldiv_t {
1049    pub quot: ::std::os::raw::c_longlong,
1050    pub rem: ::std::os::raw::c_longlong,
1051}
1052#[test]
1053fn bindgen_test_layout__lldiv_t() {
1054    const UNINIT: ::std::mem::MaybeUninit<_lldiv_t> = ::std::mem::MaybeUninit::uninit();
1055    let ptr = UNINIT.as_ptr();
1056    assert_eq!(
1057        ::std::mem::size_of::<_lldiv_t>(),
1058        16usize,
1059        concat!("Size of: ", stringify!(_lldiv_t))
1060    );
1061    assert_eq!(
1062        ::std::mem::align_of::<_lldiv_t>(),
1063        8usize,
1064        concat!("Alignment of ", stringify!(_lldiv_t))
1065    );
1066    assert_eq!(
1067        unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
1068        0usize,
1069        concat!(
1070            "Offset of field: ",
1071            stringify!(_lldiv_t),
1072            "::",
1073            stringify!(quot)
1074        )
1075    );
1076    assert_eq!(
1077        unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
1078        8usize,
1079        concat!(
1080            "Offset of field: ",
1081            stringify!(_lldiv_t),
1082            "::",
1083            stringify!(rem)
1084        )
1085    );
1086}
1087pub type lldiv_t = _lldiv_t;
1088extern "C" {
1089    pub fn abs(_Number: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1090}
1091extern "C" {
1092    pub fn labs(_Number: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
1093}
1094extern "C" {
1095    pub fn llabs(_Number: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
1096}
1097extern "C" {
1098    pub fn _abs64(_Number: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
1099}
1100extern "C" {
1101    pub fn _byteswap_ushort(_Number: ::std::os::raw::c_ushort) -> ::std::os::raw::c_ushort;
1102}
1103extern "C" {
1104    pub fn _byteswap_ulong(_Number: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong;
1105}
1106extern "C" {
1107    pub fn _byteswap_uint64(_Number: ::std::os::raw::c_ulonglong) -> ::std::os::raw::c_ulonglong;
1108}
1109extern "C" {
1110    pub fn div(_Numerator: ::std::os::raw::c_int, _Denominator: ::std::os::raw::c_int) -> div_t;
1111}
1112extern "C" {
1113    pub fn ldiv(_Numerator: ::std::os::raw::c_long, _Denominator: ::std::os::raw::c_long)
1114        -> ldiv_t;
1115}
1116extern "C" {
1117    pub fn lldiv(
1118        _Numerator: ::std::os::raw::c_longlong,
1119        _Denominator: ::std::os::raw::c_longlong,
1120    ) -> lldiv_t;
1121}
1122extern "C" {
1123    pub fn _rotl(
1124        _Value: ::std::os::raw::c_uint,
1125        _Shift: ::std::os::raw::c_int,
1126    ) -> ::std::os::raw::c_uint;
1127}
1128extern "C" {
1129    pub fn _lrotl(
1130        _Value: ::std::os::raw::c_ulong,
1131        _Shift: ::std::os::raw::c_int,
1132    ) -> ::std::os::raw::c_ulong;
1133}
1134extern "C" {
1135    pub fn _rotl64(
1136        _Value: ::std::os::raw::c_ulonglong,
1137        _Shift: ::std::os::raw::c_int,
1138    ) -> ::std::os::raw::c_ulonglong;
1139}
1140extern "C" {
1141    pub fn _rotr(
1142        _Value: ::std::os::raw::c_uint,
1143        _Shift: ::std::os::raw::c_int,
1144    ) -> ::std::os::raw::c_uint;
1145}
1146extern "C" {
1147    pub fn _lrotr(
1148        _Value: ::std::os::raw::c_ulong,
1149        _Shift: ::std::os::raw::c_int,
1150    ) -> ::std::os::raw::c_ulong;
1151}
1152extern "C" {
1153    pub fn _rotr64(
1154        _Value: ::std::os::raw::c_ulonglong,
1155        _Shift: ::std::os::raw::c_int,
1156    ) -> ::std::os::raw::c_ulonglong;
1157}
1158extern "C" {
1159    pub fn srand(_Seed: ::std::os::raw::c_uint);
1160}
1161extern "C" {
1162    pub fn rand() -> ::std::os::raw::c_int;
1163}
1164#[repr(C)]
1165#[derive(Debug, Copy, Clone)]
1166pub struct _LDOUBLE {
1167    pub ld: [::std::os::raw::c_uchar; 10usize],
1168}
1169#[test]
1170fn bindgen_test_layout__LDOUBLE() {
1171    const UNINIT: ::std::mem::MaybeUninit<_LDOUBLE> = ::std::mem::MaybeUninit::uninit();
1172    let ptr = UNINIT.as_ptr();
1173    assert_eq!(
1174        ::std::mem::size_of::<_LDOUBLE>(),
1175        10usize,
1176        concat!("Size of: ", stringify!(_LDOUBLE))
1177    );
1178    assert_eq!(
1179        ::std::mem::align_of::<_LDOUBLE>(),
1180        1usize,
1181        concat!("Alignment of ", stringify!(_LDOUBLE))
1182    );
1183    assert_eq!(
1184        unsafe { ::std::ptr::addr_of!((*ptr).ld) as usize - ptr as usize },
1185        0usize,
1186        concat!(
1187            "Offset of field: ",
1188            stringify!(_LDOUBLE),
1189            "::",
1190            stringify!(ld)
1191        )
1192    );
1193}
1194#[repr(C)]
1195#[derive(Debug, Copy, Clone)]
1196pub struct _CRT_DOUBLE {
1197    pub x: f64,
1198}
1199#[test]
1200fn bindgen_test_layout__CRT_DOUBLE() {
1201    const UNINIT: ::std::mem::MaybeUninit<_CRT_DOUBLE> = ::std::mem::MaybeUninit::uninit();
1202    let ptr = UNINIT.as_ptr();
1203    assert_eq!(
1204        ::std::mem::size_of::<_CRT_DOUBLE>(),
1205        8usize,
1206        concat!("Size of: ", stringify!(_CRT_DOUBLE))
1207    );
1208    assert_eq!(
1209        ::std::mem::align_of::<_CRT_DOUBLE>(),
1210        8usize,
1211        concat!("Alignment of ", stringify!(_CRT_DOUBLE))
1212    );
1213    assert_eq!(
1214        unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
1215        0usize,
1216        concat!(
1217            "Offset of field: ",
1218            stringify!(_CRT_DOUBLE),
1219            "::",
1220            stringify!(x)
1221        )
1222    );
1223}
1224#[repr(C)]
1225#[derive(Debug, Copy, Clone)]
1226pub struct _CRT_FLOAT {
1227    pub f: f32,
1228}
1229#[test]
1230fn bindgen_test_layout__CRT_FLOAT() {
1231    const UNINIT: ::std::mem::MaybeUninit<_CRT_FLOAT> = ::std::mem::MaybeUninit::uninit();
1232    let ptr = UNINIT.as_ptr();
1233    assert_eq!(
1234        ::std::mem::size_of::<_CRT_FLOAT>(),
1235        4usize,
1236        concat!("Size of: ", stringify!(_CRT_FLOAT))
1237    );
1238    assert_eq!(
1239        ::std::mem::align_of::<_CRT_FLOAT>(),
1240        4usize,
1241        concat!("Alignment of ", stringify!(_CRT_FLOAT))
1242    );
1243    assert_eq!(
1244        unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize },
1245        0usize,
1246        concat!(
1247            "Offset of field: ",
1248            stringify!(_CRT_FLOAT),
1249            "::",
1250            stringify!(f)
1251        )
1252    );
1253}
1254#[repr(C)]
1255#[derive(Debug, Copy, Clone)]
1256pub struct _LONGDOUBLE {
1257    pub x: f64,
1258}
1259#[test]
1260fn bindgen_test_layout__LONGDOUBLE() {
1261    const UNINIT: ::std::mem::MaybeUninit<_LONGDOUBLE> = ::std::mem::MaybeUninit::uninit();
1262    let ptr = UNINIT.as_ptr();
1263    assert_eq!(
1264        ::std::mem::size_of::<_LONGDOUBLE>(),
1265        8usize,
1266        concat!("Size of: ", stringify!(_LONGDOUBLE))
1267    );
1268    assert_eq!(
1269        ::std::mem::align_of::<_LONGDOUBLE>(),
1270        8usize,
1271        concat!("Alignment of ", stringify!(_LONGDOUBLE))
1272    );
1273    assert_eq!(
1274        unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
1275        0usize,
1276        concat!(
1277            "Offset of field: ",
1278            stringify!(_LONGDOUBLE),
1279            "::",
1280            stringify!(x)
1281        )
1282    );
1283}
1284#[repr(C)]
1285#[derive(Debug, Copy, Clone)]
1286pub struct _LDBL12 {
1287    pub ld12: [::std::os::raw::c_uchar; 12usize],
1288}
1289#[test]
1290fn bindgen_test_layout__LDBL12() {
1291    const UNINIT: ::std::mem::MaybeUninit<_LDBL12> = ::std::mem::MaybeUninit::uninit();
1292    let ptr = UNINIT.as_ptr();
1293    assert_eq!(
1294        ::std::mem::size_of::<_LDBL12>(),
1295        12usize,
1296        concat!("Size of: ", stringify!(_LDBL12))
1297    );
1298    assert_eq!(
1299        ::std::mem::align_of::<_LDBL12>(),
1300        1usize,
1301        concat!("Alignment of ", stringify!(_LDBL12))
1302    );
1303    assert_eq!(
1304        unsafe { ::std::ptr::addr_of!((*ptr).ld12) as usize - ptr as usize },
1305        0usize,
1306        concat!(
1307            "Offset of field: ",
1308            stringify!(_LDBL12),
1309            "::",
1310            stringify!(ld12)
1311        )
1312    );
1313}
1314extern "C" {
1315    pub fn atof(_String: *const ::std::os::raw::c_char) -> f64;
1316}
1317extern "C" {
1318    pub fn atoi(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1319}
1320extern "C" {
1321    pub fn atol(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
1322}
1323extern "C" {
1324    pub fn atoll(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
1325}
1326extern "C" {
1327    pub fn _atoi64(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
1328}
1329extern "C" {
1330    pub fn _atof_l(_String: *const ::std::os::raw::c_char, _Locale: _locale_t) -> f64;
1331}
1332extern "C" {
1333    pub fn _atoi_l(
1334        _String: *const ::std::os::raw::c_char,
1335        _Locale: _locale_t,
1336    ) -> ::std::os::raw::c_int;
1337}
1338extern "C" {
1339    pub fn _atol_l(
1340        _String: *const ::std::os::raw::c_char,
1341        _Locale: _locale_t,
1342    ) -> ::std::os::raw::c_long;
1343}
1344extern "C" {
1345    pub fn _atoll_l(
1346        _String: *const ::std::os::raw::c_char,
1347        _Locale: _locale_t,
1348    ) -> ::std::os::raw::c_longlong;
1349}
1350extern "C" {
1351    pub fn _atoi64_l(
1352        _String: *const ::std::os::raw::c_char,
1353        _Locale: _locale_t,
1354    ) -> ::std::os::raw::c_longlong;
1355}
1356extern "C" {
1357    pub fn _atoflt(
1358        _Result: *mut _CRT_FLOAT,
1359        _String: *const ::std::os::raw::c_char,
1360    ) -> ::std::os::raw::c_int;
1361}
1362extern "C" {
1363    pub fn _atodbl(
1364        _Result: *mut _CRT_DOUBLE,
1365        _String: *mut ::std::os::raw::c_char,
1366    ) -> ::std::os::raw::c_int;
1367}
1368extern "C" {
1369    pub fn _atoldbl(
1370        _Result: *mut _LDOUBLE,
1371        _String: *mut ::std::os::raw::c_char,
1372    ) -> ::std::os::raw::c_int;
1373}
1374extern "C" {
1375    pub fn _atoflt_l(
1376        _Result: *mut _CRT_FLOAT,
1377        _String: *const ::std::os::raw::c_char,
1378        _Locale: _locale_t,
1379    ) -> ::std::os::raw::c_int;
1380}
1381extern "C" {
1382    pub fn _atodbl_l(
1383        _Result: *mut _CRT_DOUBLE,
1384        _String: *mut ::std::os::raw::c_char,
1385        _Locale: _locale_t,
1386    ) -> ::std::os::raw::c_int;
1387}
1388extern "C" {
1389    pub fn _atoldbl_l(
1390        _Result: *mut _LDOUBLE,
1391        _String: *mut ::std::os::raw::c_char,
1392        _Locale: _locale_t,
1393    ) -> ::std::os::raw::c_int;
1394}
1395extern "C" {
1396    pub fn strtof(
1397        _String: *const ::std::os::raw::c_char,
1398        _EndPtr: *mut *mut ::std::os::raw::c_char,
1399    ) -> f32;
1400}
1401extern "C" {
1402    pub fn _strtof_l(
1403        _String: *const ::std::os::raw::c_char,
1404        _EndPtr: *mut *mut ::std::os::raw::c_char,
1405        _Locale: _locale_t,
1406    ) -> f32;
1407}
1408extern "C" {
1409    pub fn strtod(
1410        _String: *const ::std::os::raw::c_char,
1411        _EndPtr: *mut *mut ::std::os::raw::c_char,
1412    ) -> f64;
1413}
1414extern "C" {
1415    pub fn _strtod_l(
1416        _String: *const ::std::os::raw::c_char,
1417        _EndPtr: *mut *mut ::std::os::raw::c_char,
1418        _Locale: _locale_t,
1419    ) -> f64;
1420}
1421extern "C" {
1422    pub fn strtold(
1423        _String: *const ::std::os::raw::c_char,
1424        _EndPtr: *mut *mut ::std::os::raw::c_char,
1425    ) -> f64;
1426}
1427extern "C" {
1428    pub fn _strtold_l(
1429        _String: *const ::std::os::raw::c_char,
1430        _EndPtr: *mut *mut ::std::os::raw::c_char,
1431        _Locale: _locale_t,
1432    ) -> f64;
1433}
1434extern "C" {
1435    pub fn strtol(
1436        _String: *const ::std::os::raw::c_char,
1437        _EndPtr: *mut *mut ::std::os::raw::c_char,
1438        _Radix: ::std::os::raw::c_int,
1439    ) -> ::std::os::raw::c_long;
1440}
1441extern "C" {
1442    pub fn _strtol_l(
1443        _String: *const ::std::os::raw::c_char,
1444        _EndPtr: *mut *mut ::std::os::raw::c_char,
1445        _Radix: ::std::os::raw::c_int,
1446        _Locale: _locale_t,
1447    ) -> ::std::os::raw::c_long;
1448}
1449extern "C" {
1450    pub fn strtoll(
1451        _String: *const ::std::os::raw::c_char,
1452        _EndPtr: *mut *mut ::std::os::raw::c_char,
1453        _Radix: ::std::os::raw::c_int,
1454    ) -> ::std::os::raw::c_longlong;
1455}
1456extern "C" {
1457    pub fn _strtoll_l(
1458        _String: *const ::std::os::raw::c_char,
1459        _EndPtr: *mut *mut ::std::os::raw::c_char,
1460        _Radix: ::std::os::raw::c_int,
1461        _Locale: _locale_t,
1462    ) -> ::std::os::raw::c_longlong;
1463}
1464extern "C" {
1465    pub fn strtoul(
1466        _String: *const ::std::os::raw::c_char,
1467        _EndPtr: *mut *mut ::std::os::raw::c_char,
1468        _Radix: ::std::os::raw::c_int,
1469    ) -> ::std::os::raw::c_ulong;
1470}
1471extern "C" {
1472    pub fn _strtoul_l(
1473        _String: *const ::std::os::raw::c_char,
1474        _EndPtr: *mut *mut ::std::os::raw::c_char,
1475        _Radix: ::std::os::raw::c_int,
1476        _Locale: _locale_t,
1477    ) -> ::std::os::raw::c_ulong;
1478}
1479extern "C" {
1480    pub fn strtoull(
1481        _String: *const ::std::os::raw::c_char,
1482        _EndPtr: *mut *mut ::std::os::raw::c_char,
1483        _Radix: ::std::os::raw::c_int,
1484    ) -> ::std::os::raw::c_ulonglong;
1485}
1486extern "C" {
1487    pub fn _strtoull_l(
1488        _String: *const ::std::os::raw::c_char,
1489        _EndPtr: *mut *mut ::std::os::raw::c_char,
1490        _Radix: ::std::os::raw::c_int,
1491        _Locale: _locale_t,
1492    ) -> ::std::os::raw::c_ulonglong;
1493}
1494extern "C" {
1495    pub fn _strtoi64(
1496        _String: *const ::std::os::raw::c_char,
1497        _EndPtr: *mut *mut ::std::os::raw::c_char,
1498        _Radix: ::std::os::raw::c_int,
1499    ) -> ::std::os::raw::c_longlong;
1500}
1501extern "C" {
1502    pub fn _strtoi64_l(
1503        _String: *const ::std::os::raw::c_char,
1504        _EndPtr: *mut *mut ::std::os::raw::c_char,
1505        _Radix: ::std::os::raw::c_int,
1506        _Locale: _locale_t,
1507    ) -> ::std::os::raw::c_longlong;
1508}
1509extern "C" {
1510    pub fn _strtoui64(
1511        _String: *const ::std::os::raw::c_char,
1512        _EndPtr: *mut *mut ::std::os::raw::c_char,
1513        _Radix: ::std::os::raw::c_int,
1514    ) -> ::std::os::raw::c_ulonglong;
1515}
1516extern "C" {
1517    pub fn _strtoui64_l(
1518        _String: *const ::std::os::raw::c_char,
1519        _EndPtr: *mut *mut ::std::os::raw::c_char,
1520        _Radix: ::std::os::raw::c_int,
1521        _Locale: _locale_t,
1522    ) -> ::std::os::raw::c_ulonglong;
1523}
1524extern "C" {
1525    pub fn _itoa_s(
1526        _Value: ::std::os::raw::c_int,
1527        _Buffer: *mut ::std::os::raw::c_char,
1528        _BufferCount: usize,
1529        _Radix: ::std::os::raw::c_int,
1530    ) -> errno_t;
1531}
1532extern "C" {
1533    pub fn _itoa(
1534        _Value: ::std::os::raw::c_int,
1535        _Buffer: *mut ::std::os::raw::c_char,
1536        _Radix: ::std::os::raw::c_int,
1537    ) -> *mut ::std::os::raw::c_char;
1538}
1539extern "C" {
1540    pub fn _ltoa_s(
1541        _Value: ::std::os::raw::c_long,
1542        _Buffer: *mut ::std::os::raw::c_char,
1543        _BufferCount: usize,
1544        _Radix: ::std::os::raw::c_int,
1545    ) -> errno_t;
1546}
1547extern "C" {
1548    pub fn _ltoa(
1549        _Value: ::std::os::raw::c_long,
1550        _Buffer: *mut ::std::os::raw::c_char,
1551        _Radix: ::std::os::raw::c_int,
1552    ) -> *mut ::std::os::raw::c_char;
1553}
1554extern "C" {
1555    pub fn _ultoa_s(
1556        _Value: ::std::os::raw::c_ulong,
1557        _Buffer: *mut ::std::os::raw::c_char,
1558        _BufferCount: usize,
1559        _Radix: ::std::os::raw::c_int,
1560    ) -> errno_t;
1561}
1562extern "C" {
1563    pub fn _ultoa(
1564        _Value: ::std::os::raw::c_ulong,
1565        _Buffer: *mut ::std::os::raw::c_char,
1566        _Radix: ::std::os::raw::c_int,
1567    ) -> *mut ::std::os::raw::c_char;
1568}
1569extern "C" {
1570    pub fn _i64toa_s(
1571        _Value: ::std::os::raw::c_longlong,
1572        _Buffer: *mut ::std::os::raw::c_char,
1573        _BufferCount: usize,
1574        _Radix: ::std::os::raw::c_int,
1575    ) -> errno_t;
1576}
1577extern "C" {
1578    pub fn _i64toa(
1579        _Value: ::std::os::raw::c_longlong,
1580        _Buffer: *mut ::std::os::raw::c_char,
1581        _Radix: ::std::os::raw::c_int,
1582    ) -> *mut ::std::os::raw::c_char;
1583}
1584extern "C" {
1585    pub fn _ui64toa_s(
1586        _Value: ::std::os::raw::c_ulonglong,
1587        _Buffer: *mut ::std::os::raw::c_char,
1588        _BufferCount: usize,
1589        _Radix: ::std::os::raw::c_int,
1590    ) -> errno_t;
1591}
1592extern "C" {
1593    pub fn _ui64toa(
1594        _Value: ::std::os::raw::c_ulonglong,
1595        _Buffer: *mut ::std::os::raw::c_char,
1596        _Radix: ::std::os::raw::c_int,
1597    ) -> *mut ::std::os::raw::c_char;
1598}
1599extern "C" {
1600    pub fn _ecvt_s(
1601        _Buffer: *mut ::std::os::raw::c_char,
1602        _BufferCount: usize,
1603        _Value: f64,
1604        _DigitCount: ::std::os::raw::c_int,
1605        _PtDec: *mut ::std::os::raw::c_int,
1606        _PtSign: *mut ::std::os::raw::c_int,
1607    ) -> errno_t;
1608}
1609extern "C" {
1610    pub fn _ecvt(
1611        _Value: f64,
1612        _DigitCount: ::std::os::raw::c_int,
1613        _PtDec: *mut ::std::os::raw::c_int,
1614        _PtSign: *mut ::std::os::raw::c_int,
1615    ) -> *mut ::std::os::raw::c_char;
1616}
1617extern "C" {
1618    pub fn _fcvt_s(
1619        _Buffer: *mut ::std::os::raw::c_char,
1620        _BufferCount: usize,
1621        _Value: f64,
1622        _FractionalDigitCount: ::std::os::raw::c_int,
1623        _PtDec: *mut ::std::os::raw::c_int,
1624        _PtSign: *mut ::std::os::raw::c_int,
1625    ) -> errno_t;
1626}
1627extern "C" {
1628    pub fn _fcvt(
1629        _Value: f64,
1630        _FractionalDigitCount: ::std::os::raw::c_int,
1631        _PtDec: *mut ::std::os::raw::c_int,
1632        _PtSign: *mut ::std::os::raw::c_int,
1633    ) -> *mut ::std::os::raw::c_char;
1634}
1635extern "C" {
1636    pub fn _gcvt_s(
1637        _Buffer: *mut ::std::os::raw::c_char,
1638        _BufferCount: usize,
1639        _Value: f64,
1640        _DigitCount: ::std::os::raw::c_int,
1641    ) -> errno_t;
1642}
1643extern "C" {
1644    pub fn _gcvt(
1645        _Value: f64,
1646        _DigitCount: ::std::os::raw::c_int,
1647        _Buffer: *mut ::std::os::raw::c_char,
1648    ) -> *mut ::std::os::raw::c_char;
1649}
1650extern "C" {
1651    pub fn ___mb_cur_max_func() -> ::std::os::raw::c_int;
1652}
1653extern "C" {
1654    pub fn ___mb_cur_max_l_func(_Locale: _locale_t) -> ::std::os::raw::c_int;
1655}
1656extern "C" {
1657    pub fn mblen(_Ch: *const ::std::os::raw::c_char, _MaxCount: usize) -> ::std::os::raw::c_int;
1658}
1659extern "C" {
1660    pub fn _mblen_l(
1661        _Ch: *const ::std::os::raw::c_char,
1662        _MaxCount: usize,
1663        _Locale: _locale_t,
1664    ) -> ::std::os::raw::c_int;
1665}
1666extern "C" {
1667    pub fn _mbstrlen(_String: *const ::std::os::raw::c_char) -> usize;
1668}
1669extern "C" {
1670    pub fn _mbstrlen_l(_String: *const ::std::os::raw::c_char, _Locale: _locale_t) -> usize;
1671}
1672extern "C" {
1673    pub fn _mbstrnlen(_String: *const ::std::os::raw::c_char, _MaxCount: usize) -> usize;
1674}
1675extern "C" {
1676    pub fn _mbstrnlen_l(
1677        _String: *const ::std::os::raw::c_char,
1678        _MaxCount: usize,
1679        _Locale: _locale_t,
1680    ) -> usize;
1681}
1682extern "C" {
1683    pub fn mbtowc(
1684        _DstCh: *mut wchar_t,
1685        _SrcCh: *const ::std::os::raw::c_char,
1686        _SrcSizeInBytes: usize,
1687    ) -> ::std::os::raw::c_int;
1688}
1689extern "C" {
1690    pub fn _mbtowc_l(
1691        _DstCh: *mut wchar_t,
1692        _SrcCh: *const ::std::os::raw::c_char,
1693        _SrcSizeInBytes: usize,
1694        _Locale: _locale_t,
1695    ) -> ::std::os::raw::c_int;
1696}
1697extern "C" {
1698    pub fn mbstowcs_s(
1699        _PtNumOfCharConverted: *mut usize,
1700        _DstBuf: *mut wchar_t,
1701        _SizeInWords: usize,
1702        _SrcBuf: *const ::std::os::raw::c_char,
1703        _MaxCount: usize,
1704    ) -> errno_t;
1705}
1706extern "C" {
1707    pub fn mbstowcs(
1708        _Dest: *mut wchar_t,
1709        _Source: *const ::std::os::raw::c_char,
1710        _MaxCount: usize,
1711    ) -> usize;
1712}
1713extern "C" {
1714    pub fn _mbstowcs_s_l(
1715        _PtNumOfCharConverted: *mut usize,
1716        _DstBuf: *mut wchar_t,
1717        _SizeInWords: usize,
1718        _SrcBuf: *const ::std::os::raw::c_char,
1719        _MaxCount: usize,
1720        _Locale: _locale_t,
1721    ) -> errno_t;
1722}
1723extern "C" {
1724    pub fn _mbstowcs_l(
1725        _Dest: *mut wchar_t,
1726        _Source: *const ::std::os::raw::c_char,
1727        _MaxCount: usize,
1728        _Locale: _locale_t,
1729    ) -> usize;
1730}
1731extern "C" {
1732    pub fn wctomb(_MbCh: *mut ::std::os::raw::c_char, _WCh: wchar_t) -> ::std::os::raw::c_int;
1733}
1734extern "C" {
1735    pub fn _wctomb_l(
1736        _MbCh: *mut ::std::os::raw::c_char,
1737        _WCh: wchar_t,
1738        _Locale: _locale_t,
1739    ) -> ::std::os::raw::c_int;
1740}
1741extern "C" {
1742    pub fn wctomb_s(
1743        _SizeConverted: *mut ::std::os::raw::c_int,
1744        _MbCh: *mut ::std::os::raw::c_char,
1745        _SizeInBytes: rsize_t,
1746        _WCh: wchar_t,
1747    ) -> errno_t;
1748}
1749extern "C" {
1750    pub fn _wctomb_s_l(
1751        _SizeConverted: *mut ::std::os::raw::c_int,
1752        _MbCh: *mut ::std::os::raw::c_char,
1753        _SizeInBytes: usize,
1754        _WCh: wchar_t,
1755        _Locale: _locale_t,
1756    ) -> errno_t;
1757}
1758extern "C" {
1759    pub fn wcstombs_s(
1760        _PtNumOfCharConverted: *mut usize,
1761        _Dst: *mut ::std::os::raw::c_char,
1762        _DstSizeInBytes: usize,
1763        _Src: *const wchar_t,
1764        _MaxCountInBytes: usize,
1765    ) -> errno_t;
1766}
1767extern "C" {
1768    pub fn wcstombs(
1769        _Dest: *mut ::std::os::raw::c_char,
1770        _Source: *const wchar_t,
1771        _MaxCount: usize,
1772    ) -> usize;
1773}
1774extern "C" {
1775    pub fn _wcstombs_s_l(
1776        _PtNumOfCharConverted: *mut usize,
1777        _Dst: *mut ::std::os::raw::c_char,
1778        _DstSizeInBytes: usize,
1779        _Src: *const wchar_t,
1780        _MaxCountInBytes: usize,
1781        _Locale: _locale_t,
1782    ) -> errno_t;
1783}
1784extern "C" {
1785    pub fn _wcstombs_l(
1786        _Dest: *mut ::std::os::raw::c_char,
1787        _Source: *const wchar_t,
1788        _MaxCount: usize,
1789        _Locale: _locale_t,
1790    ) -> usize;
1791}
1792extern "C" {
1793    pub fn _fullpath(
1794        _Buffer: *mut ::std::os::raw::c_char,
1795        _Path: *const ::std::os::raw::c_char,
1796        _BufferCount: usize,
1797    ) -> *mut ::std::os::raw::c_char;
1798}
1799extern "C" {
1800    pub fn _makepath_s(
1801        _Buffer: *mut ::std::os::raw::c_char,
1802        _BufferCount: usize,
1803        _Drive: *const ::std::os::raw::c_char,
1804        _Dir: *const ::std::os::raw::c_char,
1805        _Filename: *const ::std::os::raw::c_char,
1806        _Ext: *const ::std::os::raw::c_char,
1807    ) -> errno_t;
1808}
1809extern "C" {
1810    pub fn _makepath(
1811        _Buffer: *mut ::std::os::raw::c_char,
1812        _Drive: *const ::std::os::raw::c_char,
1813        _Dir: *const ::std::os::raw::c_char,
1814        _Filename: *const ::std::os::raw::c_char,
1815        _Ext: *const ::std::os::raw::c_char,
1816    );
1817}
1818extern "C" {
1819    pub fn _splitpath(
1820        _FullPath: *const ::std::os::raw::c_char,
1821        _Drive: *mut ::std::os::raw::c_char,
1822        _Dir: *mut ::std::os::raw::c_char,
1823        _Filename: *mut ::std::os::raw::c_char,
1824        _Ext: *mut ::std::os::raw::c_char,
1825    );
1826}
1827extern "C" {
1828    pub fn _splitpath_s(
1829        _FullPath: *const ::std::os::raw::c_char,
1830        _Drive: *mut ::std::os::raw::c_char,
1831        _DriveCount: usize,
1832        _Dir: *mut ::std::os::raw::c_char,
1833        _DirCount: usize,
1834        _Filename: *mut ::std::os::raw::c_char,
1835        _FilenameCount: usize,
1836        _Ext: *mut ::std::os::raw::c_char,
1837        _ExtCount: usize,
1838    ) -> errno_t;
1839}
1840extern "C" {
1841    pub fn getenv_s(
1842        _RequiredCount: *mut usize,
1843        _Buffer: *mut ::std::os::raw::c_char,
1844        _BufferCount: rsize_t,
1845        _VarName: *const ::std::os::raw::c_char,
1846    ) -> errno_t;
1847}
1848extern "C" {
1849    pub fn __p___argc() -> *mut ::std::os::raw::c_int;
1850}
1851extern "C" {
1852    pub fn __p___argv() -> *mut *mut *mut ::std::os::raw::c_char;
1853}
1854extern "C" {
1855    pub fn __p___wargv() -> *mut *mut *mut wchar_t;
1856}
1857extern "C" {
1858    pub fn __p__environ() -> *mut *mut *mut ::std::os::raw::c_char;
1859}
1860extern "C" {
1861    pub fn __p__wenviron() -> *mut *mut *mut wchar_t;
1862}
1863extern "C" {
1864    pub fn getenv(_VarName: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
1865}
1866extern "C" {
1867    pub fn _dupenv_s(
1868        _Buffer: *mut *mut ::std::os::raw::c_char,
1869        _BufferCount: *mut usize,
1870        _VarName: *const ::std::os::raw::c_char,
1871    ) -> errno_t;
1872}
1873extern "C" {
1874    pub fn system(_Command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1875}
1876extern "C" {
1877    pub fn _putenv(_EnvString: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1878}
1879extern "C" {
1880    pub fn _putenv_s(
1881        _Name: *const ::std::os::raw::c_char,
1882        _Value: *const ::std::os::raw::c_char,
1883    ) -> errno_t;
1884}
1885extern "C" {
1886    pub fn _searchenv_s(
1887        _Filename: *const ::std::os::raw::c_char,
1888        _VarName: *const ::std::os::raw::c_char,
1889        _Buffer: *mut ::std::os::raw::c_char,
1890        _BufferCount: usize,
1891    ) -> errno_t;
1892}
1893extern "C" {
1894    pub fn _searchenv(
1895        _Filename: *const ::std::os::raw::c_char,
1896        _VarName: *const ::std::os::raw::c_char,
1897        _Buffer: *mut ::std::os::raw::c_char,
1898    );
1899}
1900extern "C" {
1901    pub fn _seterrormode(_Mode: ::std::os::raw::c_int);
1902}
1903extern "C" {
1904    pub fn _beep(_Frequency: ::std::os::raw::c_uint, _Duration: ::std::os::raw::c_uint);
1905}
1906extern "C" {
1907    pub fn _sleep(_Duration: ::std::os::raw::c_ulong);
1908}
1909extern "C" {
1910    pub fn ecvt(
1911        _Value: f64,
1912        _DigitCount: ::std::os::raw::c_int,
1913        _PtDec: *mut ::std::os::raw::c_int,
1914        _PtSign: *mut ::std::os::raw::c_int,
1915    ) -> *mut ::std::os::raw::c_char;
1916}
1917extern "C" {
1918    pub fn fcvt(
1919        _Value: f64,
1920        _FractionalDigitCount: ::std::os::raw::c_int,
1921        _PtDec: *mut ::std::os::raw::c_int,
1922        _PtSign: *mut ::std::os::raw::c_int,
1923    ) -> *mut ::std::os::raw::c_char;
1924}
1925extern "C" {
1926    pub fn gcvt(
1927        _Value: f64,
1928        _DigitCount: ::std::os::raw::c_int,
1929        _DstBuf: *mut ::std::os::raw::c_char,
1930    ) -> *mut ::std::os::raw::c_char;
1931}
1932extern "C" {
1933    pub fn itoa(
1934        _Value: ::std::os::raw::c_int,
1935        _Buffer: *mut ::std::os::raw::c_char,
1936        _Radix: ::std::os::raw::c_int,
1937    ) -> *mut ::std::os::raw::c_char;
1938}
1939extern "C" {
1940    pub fn ltoa(
1941        _Value: ::std::os::raw::c_long,
1942        _Buffer: *mut ::std::os::raw::c_char,
1943        _Radix: ::std::os::raw::c_int,
1944    ) -> *mut ::std::os::raw::c_char;
1945}
1946extern "C" {
1947    pub fn swab(
1948        _Buf1: *mut ::std::os::raw::c_char,
1949        _Buf2: *mut ::std::os::raw::c_char,
1950        _SizeInBytes: ::std::os::raw::c_int,
1951    );
1952}
1953extern "C" {
1954    pub fn ultoa(
1955        _Value: ::std::os::raw::c_ulong,
1956        _Buffer: *mut ::std::os::raw::c_char,
1957        _Radix: ::std::os::raw::c_int,
1958    ) -> *mut ::std::os::raw::c_char;
1959}
1960extern "C" {
1961    pub fn putenv(_EnvString: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
1962}
1963extern "C" {
1964    pub fn onexit(_Func: _onexit_t) -> _onexit_t;
1965}
1966pub type lzham_uint8 = ::std::os::raw::c_uchar;
1967pub type lzham_int32 = ::std::os::raw::c_int;
1968pub type lzham_uint32 = ::std::os::raw::c_uint;
1969pub type lzham_bool = ::std::os::raw::c_uint;
1970extern "C" {
1971    pub fn lzham_get_version() -> lzham_uint32;
1972}
1973pub type lzham_realloc_func = ::std::option::Option<
1974    unsafe extern "C" fn(
1975        p: *mut ::std::os::raw::c_void,
1976        size: usize,
1977        pActual_size: *mut usize,
1978        movable: lzham_bool,
1979        pUser_data: *mut ::std::os::raw::c_void,
1980    ) -> *mut ::std::os::raw::c_void,
1981>;
1982pub type lzham_msize_func = ::std::option::Option<
1983    unsafe extern "C" fn(
1984        p: *mut ::std::os::raw::c_void,
1985        pUser_data: *mut ::std::os::raw::c_void,
1986    ) -> usize,
1987>;
1988extern "C" {
1989    pub fn lzham_set_memory_callbacks(
1990        pRealloc: lzham_realloc_func,
1991        pMSize: lzham_msize_func,
1992        pUser_data: *mut ::std::os::raw::c_void,
1993    );
1994}
1995pub const lzham_flush_t_LZHAM_NO_FLUSH: lzham_flush_t = 0;
1996pub const lzham_flush_t_LZHAM_SYNC_FLUSH: lzham_flush_t = 2;
1997pub const lzham_flush_t_LZHAM_FULL_FLUSH: lzham_flush_t = 3;
1998pub const lzham_flush_t_LZHAM_FINISH: lzham_flush_t = 4;
1999pub const lzham_flush_t_LZHAM_TABLE_FLUSH: lzham_flush_t = 10;
2000pub type lzham_flush_t = ::std::os::raw::c_int;
2001pub const lzham_compress_status_t_LZHAM_COMP_STATUS_NOT_FINISHED: lzham_compress_status_t = 0;
2002pub const lzham_compress_status_t_LZHAM_COMP_STATUS_NEEDS_MORE_INPUT: lzham_compress_status_t = 1;
2003pub const lzham_compress_status_t_LZHAM_COMP_STATUS_HAS_MORE_OUTPUT: lzham_compress_status_t = 2;
2004pub const lzham_compress_status_t_LZHAM_COMP_STATUS_FIRST_SUCCESS_OR_FAILURE_CODE:
2005    lzham_compress_status_t = 3;
2006pub const lzham_compress_status_t_LZHAM_COMP_STATUS_SUCCESS: lzham_compress_status_t = 3;
2007pub const lzham_compress_status_t_LZHAM_COMP_STATUS_FIRST_FAILURE_CODE: lzham_compress_status_t = 4;
2008pub const lzham_compress_status_t_LZHAM_COMP_STATUS_FAILED: lzham_compress_status_t = 4;
2009pub const lzham_compress_status_t_LZHAM_COMP_STATUS_FAILED_INITIALIZING: lzham_compress_status_t =
2010    5;
2011pub const lzham_compress_status_t_LZHAM_COMP_STATUS_INVALID_PARAMETER: lzham_compress_status_t = 6;
2012pub const lzham_compress_status_t_LZHAM_COMP_STATUS_OUTPUT_BUF_TOO_SMALL: lzham_compress_status_t =
2013    7;
2014pub const lzham_compress_status_t_LZHAM_COMP_STATUS_FORCE_DWORD: lzham_compress_status_t = -1;
2015pub type lzham_compress_status_t = ::std::os::raw::c_int;
2016pub const lzham_compress_level_LZHAM_COMP_LEVEL_FASTEST: lzham_compress_level = 0;
2017pub const lzham_compress_level_LZHAM_COMP_LEVEL_FASTER: lzham_compress_level = 1;
2018pub const lzham_compress_level_LZHAM_COMP_LEVEL_DEFAULT: lzham_compress_level = 2;
2019pub const lzham_compress_level_LZHAM_COMP_LEVEL_BETTER: lzham_compress_level = 3;
2020pub const lzham_compress_level_LZHAM_COMP_LEVEL_UBER: lzham_compress_level = 4;
2021pub const lzham_compress_level_LZHAM_TOTAL_COMP_LEVELS: lzham_compress_level = 5;
2022pub const lzham_compress_level_LZHAM_COMP_LEVEL_FORCE_DWORD: lzham_compress_level = -1;
2023pub type lzham_compress_level = ::std::os::raw::c_int;
2024pub type lzham_compress_state_ptr = *mut ::std::os::raw::c_void;
2025pub const lzham_compress_flags_LZHAM_COMP_FLAG_FORCE_POLAR_CODING: lzham_compress_flags = 1;
2026pub const lzham_compress_flags_LZHAM_COMP_FLAG_EXTREME_PARSING: lzham_compress_flags = 2;
2027pub const lzham_compress_flags_LZHAM_COMP_FLAG_DETERMINISTIC_PARSING: lzham_compress_flags = 4;
2028pub const lzham_compress_flags_LZHAM_COMP_FLAG_TRADEOFF_DECOMPRESSION_RATE_FOR_COMP_RATIO:
2029    lzham_compress_flags = 16;
2030pub const lzham_compress_flags_LZHAM_COMP_FLAG_WRITE_ZLIB_STREAM: lzham_compress_flags = 32;
2031pub type lzham_compress_flags = ::std::os::raw::c_int;
2032#[repr(C)]
2033#[derive(Debug, Copy, Clone)]
2034pub struct lzham_compress_params {
2035    pub m_struct_size: lzham_uint32,
2036    pub m_dict_size_log2: lzham_uint32,
2037    pub m_level: lzham_compress_level,
2038    pub m_max_helper_threads: lzham_int32,
2039    pub m_cpucache_total_lines: lzham_uint32,
2040    pub m_cpucache_line_size: lzham_uint32,
2041    pub m_compress_flags: lzham_uint32,
2042    pub m_num_seed_bytes: lzham_uint32,
2043    pub m_pSeed_bytes: *const ::std::os::raw::c_void,
2044}
2045#[test]
2046fn bindgen_test_layout_lzham_compress_params() {
2047    const UNINIT: ::std::mem::MaybeUninit<lzham_compress_params> =
2048        ::std::mem::MaybeUninit::uninit();
2049    let ptr = UNINIT.as_ptr();
2050    assert_eq!(
2051        ::std::mem::size_of::<lzham_compress_params>(),
2052        40usize,
2053        concat!("Size of: ", stringify!(lzham_compress_params))
2054    );
2055    assert_eq!(
2056        ::std::mem::align_of::<lzham_compress_params>(),
2057        8usize,
2058        concat!("Alignment of ", stringify!(lzham_compress_params))
2059    );
2060    assert_eq!(
2061        unsafe { ::std::ptr::addr_of!((*ptr).m_struct_size) as usize - ptr as usize },
2062        0usize,
2063        concat!(
2064            "Offset of field: ",
2065            stringify!(lzham_compress_params),
2066            "::",
2067            stringify!(m_struct_size)
2068        )
2069    );
2070    assert_eq!(
2071        unsafe { ::std::ptr::addr_of!((*ptr).m_dict_size_log2) as usize - ptr as usize },
2072        4usize,
2073        concat!(
2074            "Offset of field: ",
2075            stringify!(lzham_compress_params),
2076            "::",
2077            stringify!(m_dict_size_log2)
2078        )
2079    );
2080    assert_eq!(
2081        unsafe { ::std::ptr::addr_of!((*ptr).m_level) as usize - ptr as usize },
2082        8usize,
2083        concat!(
2084            "Offset of field: ",
2085            stringify!(lzham_compress_params),
2086            "::",
2087            stringify!(m_level)
2088        )
2089    );
2090    assert_eq!(
2091        unsafe { ::std::ptr::addr_of!((*ptr).m_max_helper_threads) as usize - ptr as usize },
2092        12usize,
2093        concat!(
2094            "Offset of field: ",
2095            stringify!(lzham_compress_params),
2096            "::",
2097            stringify!(m_max_helper_threads)
2098        )
2099    );
2100    assert_eq!(
2101        unsafe { ::std::ptr::addr_of!((*ptr).m_cpucache_total_lines) as usize - ptr as usize },
2102        16usize,
2103        concat!(
2104            "Offset of field: ",
2105            stringify!(lzham_compress_params),
2106            "::",
2107            stringify!(m_cpucache_total_lines)
2108        )
2109    );
2110    assert_eq!(
2111        unsafe { ::std::ptr::addr_of!((*ptr).m_cpucache_line_size) as usize - ptr as usize },
2112        20usize,
2113        concat!(
2114            "Offset of field: ",
2115            stringify!(lzham_compress_params),
2116            "::",
2117            stringify!(m_cpucache_line_size)
2118        )
2119    );
2120    assert_eq!(
2121        unsafe { ::std::ptr::addr_of!((*ptr).m_compress_flags) as usize - ptr as usize },
2122        24usize,
2123        concat!(
2124            "Offset of field: ",
2125            stringify!(lzham_compress_params),
2126            "::",
2127            stringify!(m_compress_flags)
2128        )
2129    );
2130    assert_eq!(
2131        unsafe { ::std::ptr::addr_of!((*ptr).m_num_seed_bytes) as usize - ptr as usize },
2132        28usize,
2133        concat!(
2134            "Offset of field: ",
2135            stringify!(lzham_compress_params),
2136            "::",
2137            stringify!(m_num_seed_bytes)
2138        )
2139    );
2140    assert_eq!(
2141        unsafe { ::std::ptr::addr_of!((*ptr).m_pSeed_bytes) as usize - ptr as usize },
2142        32usize,
2143        concat!(
2144            "Offset of field: ",
2145            stringify!(lzham_compress_params),
2146            "::",
2147            stringify!(m_pSeed_bytes)
2148        )
2149    );
2150}
2151extern "C" {
2152    pub fn lzham_compress_init(pParams: *const lzham_compress_params) -> lzham_compress_state_ptr;
2153}
2154extern "C" {
2155    pub fn lzham_compress_reinit(pState: lzham_compress_state_ptr) -> lzham_compress_state_ptr;
2156}
2157extern "C" {
2158    pub fn lzham_compress_deinit(pState: lzham_compress_state_ptr) -> lzham_uint32;
2159}
2160extern "C" {
2161    pub fn lzham_compress(
2162        pState: lzham_compress_state_ptr,
2163        pIn_buf: *const lzham_uint8,
2164        pIn_buf_size: *mut usize,
2165        pOut_buf: *mut lzham_uint8,
2166        pOut_buf_size: *mut usize,
2167        no_more_input_bytes_flag: lzham_bool,
2168    ) -> lzham_compress_status_t;
2169}
2170extern "C" {
2171    pub fn lzham_compress2(
2172        pState: lzham_compress_state_ptr,
2173        pIn_buf: *const lzham_uint8,
2174        pIn_buf_size: *mut usize,
2175        pOut_buf: *mut lzham_uint8,
2176        pOut_buf_size: *mut usize,
2177        flush_type: lzham_flush_t,
2178    ) -> lzham_compress_status_t;
2179}
2180extern "C" {
2181    pub fn lzham_compress_memory(
2182        pParams: *const lzham_compress_params,
2183        pDst_buf: *mut lzham_uint8,
2184        pDst_len: *mut usize,
2185        pSrc_buf: *const lzham_uint8,
2186        src_len: usize,
2187        pAdler32: *mut lzham_uint32,
2188    ) -> lzham_compress_status_t;
2189}
2190pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_NOT_FINISHED: lzham_decompress_status_t = 0;
2191pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_HAS_MORE_OUTPUT: lzham_decompress_status_t =
2192    1;
2193pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_NEEDS_MORE_INPUT:
2194    lzham_decompress_status_t = 2;
2195pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FIRST_SUCCESS_OR_FAILURE_CODE:
2196    lzham_decompress_status_t = 3;
2197pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_SUCCESS: lzham_decompress_status_t = 3;
2198pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FIRST_FAILURE_CODE:
2199    lzham_decompress_status_t = 4;
2200pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_INITIALIZING:
2201    lzham_decompress_status_t = 4;
2202pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_DEST_BUF_TOO_SMALL:
2203    lzham_decompress_status_t = 5;
2204pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_EXPECTED_MORE_RAW_BYTES:
2205    lzham_decompress_status_t = 6;
2206pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_BAD_CODE: lzham_decompress_status_t =
2207    7;
2208pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_ADLER32: lzham_decompress_status_t =
2209    8;
2210pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_BAD_RAW_BLOCK:
2211    lzham_decompress_status_t = 9;
2212pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_BAD_COMP_BLOCK_SYNC_CHECK:
2213    lzham_decompress_status_t = 10;
2214pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_BAD_ZLIB_HEADER:
2215    lzham_decompress_status_t = 11;
2216pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_NEED_SEED_BYTES:
2217    lzham_decompress_status_t = 12;
2218pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_BAD_SEED_BYTES:
2219    lzham_decompress_status_t = 13;
2220pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_FAILED_BAD_SYNC_BLOCK:
2221    lzham_decompress_status_t = 14;
2222pub const lzham_decompress_status_t_LZHAM_DECOMP_STATUS_INVALID_PARAMETER:
2223    lzham_decompress_status_t = 15;
2224pub type lzham_decompress_status_t = ::std::os::raw::c_int;
2225pub type lzham_decompress_state_ptr = *mut ::std::os::raw::c_void;
2226pub const lzham_decompress_flags_LZHAM_DECOMP_FLAG_OUTPUT_UNBUFFERED: lzham_decompress_flags = 1;
2227pub const lzham_decompress_flags_LZHAM_DECOMP_FLAG_COMPUTE_ADLER32: lzham_decompress_flags = 2;
2228pub const lzham_decompress_flags_LZHAM_DECOMP_FLAG_READ_ZLIB_STREAM: lzham_decompress_flags = 4;
2229pub type lzham_decompress_flags = ::std::os::raw::c_int;
2230#[repr(C)]
2231#[derive(Debug, Copy, Clone)]
2232pub struct lzham_decompress_params {
2233    pub m_struct_size: lzham_uint32,
2234    pub m_dict_size_log2: lzham_uint32,
2235    pub m_decompress_flags: lzham_uint32,
2236    pub m_num_seed_bytes: lzham_uint32,
2237    pub m_pSeed_bytes: *const ::std::os::raw::c_void,
2238}
2239#[test]
2240fn bindgen_test_layout_lzham_decompress_params() {
2241    const UNINIT: ::std::mem::MaybeUninit<lzham_decompress_params> =
2242        ::std::mem::MaybeUninit::uninit();
2243    let ptr = UNINIT.as_ptr();
2244    assert_eq!(
2245        ::std::mem::size_of::<lzham_decompress_params>(),
2246        24usize,
2247        concat!("Size of: ", stringify!(lzham_decompress_params))
2248    );
2249    assert_eq!(
2250        ::std::mem::align_of::<lzham_decompress_params>(),
2251        8usize,
2252        concat!("Alignment of ", stringify!(lzham_decompress_params))
2253    );
2254    assert_eq!(
2255        unsafe { ::std::ptr::addr_of!((*ptr).m_struct_size) as usize - ptr as usize },
2256        0usize,
2257        concat!(
2258            "Offset of field: ",
2259            stringify!(lzham_decompress_params),
2260            "::",
2261            stringify!(m_struct_size)
2262        )
2263    );
2264    assert_eq!(
2265        unsafe { ::std::ptr::addr_of!((*ptr).m_dict_size_log2) as usize - ptr as usize },
2266        4usize,
2267        concat!(
2268            "Offset of field: ",
2269            stringify!(lzham_decompress_params),
2270            "::",
2271            stringify!(m_dict_size_log2)
2272        )
2273    );
2274    assert_eq!(
2275        unsafe { ::std::ptr::addr_of!((*ptr).m_decompress_flags) as usize - ptr as usize },
2276        8usize,
2277        concat!(
2278            "Offset of field: ",
2279            stringify!(lzham_decompress_params),
2280            "::",
2281            stringify!(m_decompress_flags)
2282        )
2283    );
2284    assert_eq!(
2285        unsafe { ::std::ptr::addr_of!((*ptr).m_num_seed_bytes) as usize - ptr as usize },
2286        12usize,
2287        concat!(
2288            "Offset of field: ",
2289            stringify!(lzham_decompress_params),
2290            "::",
2291            stringify!(m_num_seed_bytes)
2292        )
2293    );
2294    assert_eq!(
2295        unsafe { ::std::ptr::addr_of!((*ptr).m_pSeed_bytes) as usize - ptr as usize },
2296        16usize,
2297        concat!(
2298            "Offset of field: ",
2299            stringify!(lzham_decompress_params),
2300            "::",
2301            stringify!(m_pSeed_bytes)
2302        )
2303    );
2304}
2305extern "C" {
2306    pub fn lzham_decompress_init(
2307        pParams: *const lzham_decompress_params,
2308    ) -> lzham_decompress_state_ptr;
2309}
2310extern "C" {
2311    pub fn lzham_decompress_reinit(
2312        pState: lzham_decompress_state_ptr,
2313        pParams: *const lzham_decompress_params,
2314    ) -> lzham_decompress_state_ptr;
2315}
2316extern "C" {
2317    pub fn lzham_decompress_deinit(pState: lzham_decompress_state_ptr) -> lzham_uint32;
2318}
2319extern "C" {
2320    pub fn lzham_decompress(
2321        pState: lzham_decompress_state_ptr,
2322        pIn_buf: *const lzham_uint8,
2323        pIn_buf_size: *mut usize,
2324        pOut_buf: *mut lzham_uint8,
2325        pOut_buf_size: *mut usize,
2326        no_more_input_bytes_flag: lzham_bool,
2327    ) -> lzham_decompress_status_t;
2328}
2329extern "C" {
2330    pub fn lzham_decompress_memory(
2331        pParams: *const lzham_decompress_params,
2332        pDst_buf: *mut lzham_uint8,
2333        pDst_len: *mut usize,
2334        pSrc_buf: *const lzham_uint8,
2335        src_len: usize,
2336        pAdler32: *mut lzham_uint32,
2337    ) -> lzham_decompress_status_t;
2338}
2339pub type lzham_z_ulong = ::std::os::raw::c_ulong;
2340pub type lzham_z_alloc_func = ::std::option::Option<
2341    unsafe extern "C" fn(
2342        opaque: *mut ::std::os::raw::c_void,
2343        items: usize,
2344        size: usize,
2345    ) -> *mut ::std::os::raw::c_void,
2346>;
2347pub type lzham_z_free_func = ::std::option::Option<
2348    unsafe extern "C" fn(opaque: *mut ::std::os::raw::c_void, address: *mut ::std::os::raw::c_void),
2349>;
2350pub type lzham_z_realloc_func = ::std::option::Option<
2351    unsafe extern "C" fn(
2352        opaque: *mut ::std::os::raw::c_void,
2353        address: *mut ::std::os::raw::c_void,
2354        items: usize,
2355        size: usize,
2356    ) -> *mut ::std::os::raw::c_void,
2357>;
2358extern "C" {
2359    pub fn lzham_z_adler32(
2360        adler: lzham_z_ulong,
2361        ptr: *const ::std::os::raw::c_uchar,
2362        buf_len: usize,
2363    ) -> lzham_z_ulong;
2364}
2365extern "C" {
2366    pub fn lzham_z_crc32(
2367        crc: lzham_z_ulong,
2368        ptr: *const ::std::os::raw::c_uchar,
2369        buf_len: usize,
2370    ) -> lzham_z_ulong;
2371}
2372pub const LZHAM_Z_DEFAULT_STRATEGY: _bindgen_ty_1 = 0;
2373pub const LZHAM_Z_FILTERED: _bindgen_ty_1 = 1;
2374pub const LZHAM_Z_HUFFMAN_ONLY: _bindgen_ty_1 = 2;
2375pub const LZHAM_Z_RLE: _bindgen_ty_1 = 3;
2376pub const LZHAM_Z_FIXED: _bindgen_ty_1 = 4;
2377pub type _bindgen_ty_1 = ::std::os::raw::c_int;
2378pub const LZHAM_Z_NO_FLUSH: _bindgen_ty_2 = 0;
2379pub const LZHAM_Z_PARTIAL_FLUSH: _bindgen_ty_2 = 1;
2380pub const LZHAM_Z_SYNC_FLUSH: _bindgen_ty_2 = 2;
2381pub const LZHAM_Z_FULL_FLUSH: _bindgen_ty_2 = 3;
2382pub const LZHAM_Z_FINISH: _bindgen_ty_2 = 4;
2383pub const LZHAM_Z_BLOCK: _bindgen_ty_2 = 5;
2384pub const LZHAM_Z_TABLE_FLUSH: _bindgen_ty_2 = 10;
2385pub type _bindgen_ty_2 = ::std::os::raw::c_int;
2386pub const LZHAM_Z_OK: _bindgen_ty_3 = 0;
2387pub const LZHAM_Z_STREAM_END: _bindgen_ty_3 = 1;
2388pub const LZHAM_Z_NEED_DICT: _bindgen_ty_3 = 2;
2389pub const LZHAM_Z_ERRNO: _bindgen_ty_3 = -1;
2390pub const LZHAM_Z_STREAM_ERROR: _bindgen_ty_3 = -2;
2391pub const LZHAM_Z_DATA_ERROR: _bindgen_ty_3 = -3;
2392pub const LZHAM_Z_MEM_ERROR: _bindgen_ty_3 = -4;
2393pub const LZHAM_Z_BUF_ERROR: _bindgen_ty_3 = -5;
2394pub const LZHAM_Z_VERSION_ERROR: _bindgen_ty_3 = -6;
2395pub const LZHAM_Z_PARAM_ERROR: _bindgen_ty_3 = -10000;
2396pub type _bindgen_ty_3 = ::std::os::raw::c_int;
2397pub const LZHAM_Z_NO_COMPRESSION: _bindgen_ty_4 = 0;
2398pub const LZHAM_Z_BEST_SPEED: _bindgen_ty_4 = 1;
2399pub const LZHAM_Z_BEST_COMPRESSION: _bindgen_ty_4 = 9;
2400pub const LZHAM_Z_UBER_COMPRESSION: _bindgen_ty_4 = 10;
2401pub const LZHAM_Z_DEFAULT_COMPRESSION: _bindgen_ty_4 = -1;
2402pub type _bindgen_ty_4 = ::std::os::raw::c_int;
2403#[repr(C)]
2404#[derive(Debug, Copy, Clone)]
2405pub struct lzham_z_internal_state {
2406    _unused: [u8; 0],
2407}
2408#[repr(C)]
2409#[derive(Debug, Copy, Clone)]
2410pub struct lzham_z_stream {
2411    pub next_in: *const ::std::os::raw::c_uchar,
2412    pub avail_in: ::std::os::raw::c_uint,
2413    pub total_in: lzham_z_ulong,
2414    pub next_out: *mut ::std::os::raw::c_uchar,
2415    pub avail_out: ::std::os::raw::c_uint,
2416    pub total_out: lzham_z_ulong,
2417    pub msg: *mut ::std::os::raw::c_char,
2418    pub state: *mut lzham_z_internal_state,
2419    pub zalloc: lzham_z_alloc_func,
2420    pub zfree: lzham_z_free_func,
2421    pub opaque: *mut ::std::os::raw::c_void,
2422    pub data_type: ::std::os::raw::c_int,
2423    pub adler: lzham_z_ulong,
2424    pub reserved: lzham_z_ulong,
2425}
2426#[test]
2427fn bindgen_test_layout_lzham_z_stream() {
2428    const UNINIT: ::std::mem::MaybeUninit<lzham_z_stream> = ::std::mem::MaybeUninit::uninit();
2429    let ptr = UNINIT.as_ptr();
2430    assert_eq!(
2431        ::std::mem::size_of::<lzham_z_stream>(),
2432        88usize,
2433        concat!("Size of: ", stringify!(lzham_z_stream))
2434    );
2435    assert_eq!(
2436        ::std::mem::align_of::<lzham_z_stream>(),
2437        8usize,
2438        concat!("Alignment of ", stringify!(lzham_z_stream))
2439    );
2440    assert_eq!(
2441        unsafe { ::std::ptr::addr_of!((*ptr).next_in) as usize - ptr as usize },
2442        0usize,
2443        concat!(
2444            "Offset of field: ",
2445            stringify!(lzham_z_stream),
2446            "::",
2447            stringify!(next_in)
2448        )
2449    );
2450    assert_eq!(
2451        unsafe { ::std::ptr::addr_of!((*ptr).avail_in) as usize - ptr as usize },
2452        8usize,
2453        concat!(
2454            "Offset of field: ",
2455            stringify!(lzham_z_stream),
2456            "::",
2457            stringify!(avail_in)
2458        )
2459    );
2460    assert_eq!(
2461        unsafe { ::std::ptr::addr_of!((*ptr).total_in) as usize - ptr as usize },
2462        12usize,
2463        concat!(
2464            "Offset of field: ",
2465            stringify!(lzham_z_stream),
2466            "::",
2467            stringify!(total_in)
2468        )
2469    );
2470    assert_eq!(
2471        unsafe { ::std::ptr::addr_of!((*ptr).next_out) as usize - ptr as usize },
2472        16usize,
2473        concat!(
2474            "Offset of field: ",
2475            stringify!(lzham_z_stream),
2476            "::",
2477            stringify!(next_out)
2478        )
2479    );
2480    assert_eq!(
2481        unsafe { ::std::ptr::addr_of!((*ptr).avail_out) as usize - ptr as usize },
2482        24usize,
2483        concat!(
2484            "Offset of field: ",
2485            stringify!(lzham_z_stream),
2486            "::",
2487            stringify!(avail_out)
2488        )
2489    );
2490    assert_eq!(
2491        unsafe { ::std::ptr::addr_of!((*ptr).total_out) as usize - ptr as usize },
2492        28usize,
2493        concat!(
2494            "Offset of field: ",
2495            stringify!(lzham_z_stream),
2496            "::",
2497            stringify!(total_out)
2498        )
2499    );
2500    assert_eq!(
2501        unsafe { ::std::ptr::addr_of!((*ptr).msg) as usize - ptr as usize },
2502        32usize,
2503        concat!(
2504            "Offset of field: ",
2505            stringify!(lzham_z_stream),
2506            "::",
2507            stringify!(msg)
2508        )
2509    );
2510    assert_eq!(
2511        unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize },
2512        40usize,
2513        concat!(
2514            "Offset of field: ",
2515            stringify!(lzham_z_stream),
2516            "::",
2517            stringify!(state)
2518        )
2519    );
2520    assert_eq!(
2521        unsafe { ::std::ptr::addr_of!((*ptr).zalloc) as usize - ptr as usize },
2522        48usize,
2523        concat!(
2524            "Offset of field: ",
2525            stringify!(lzham_z_stream),
2526            "::",
2527            stringify!(zalloc)
2528        )
2529    );
2530    assert_eq!(
2531        unsafe { ::std::ptr::addr_of!((*ptr).zfree) as usize - ptr as usize },
2532        56usize,
2533        concat!(
2534            "Offset of field: ",
2535            stringify!(lzham_z_stream),
2536            "::",
2537            stringify!(zfree)
2538        )
2539    );
2540    assert_eq!(
2541        unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize },
2542        64usize,
2543        concat!(
2544            "Offset of field: ",
2545            stringify!(lzham_z_stream),
2546            "::",
2547            stringify!(opaque)
2548        )
2549    );
2550    assert_eq!(
2551        unsafe { ::std::ptr::addr_of!((*ptr).data_type) as usize - ptr as usize },
2552        72usize,
2553        concat!(
2554            "Offset of field: ",
2555            stringify!(lzham_z_stream),
2556            "::",
2557            stringify!(data_type)
2558        )
2559    );
2560    assert_eq!(
2561        unsafe { ::std::ptr::addr_of!((*ptr).adler) as usize - ptr as usize },
2562        76usize,
2563        concat!(
2564            "Offset of field: ",
2565            stringify!(lzham_z_stream),
2566            "::",
2567            stringify!(adler)
2568        )
2569    );
2570    assert_eq!(
2571        unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize },
2572        80usize,
2573        concat!(
2574            "Offset of field: ",
2575            stringify!(lzham_z_stream),
2576            "::",
2577            stringify!(reserved)
2578        )
2579    );
2580}
2581pub type lzham_z_streamp = *mut lzham_z_stream;
2582extern "C" {
2583    pub fn lzham_z_version() -> *const ::std::os::raw::c_char;
2584}
2585extern "C" {
2586    pub fn lzham_z_deflateInit(
2587        pStream: lzham_z_streamp,
2588        level: ::std::os::raw::c_int,
2589    ) -> ::std::os::raw::c_int;
2590}
2591extern "C" {
2592    pub fn lzham_z_deflateInit2(
2593        pStream: lzham_z_streamp,
2594        level: ::std::os::raw::c_int,
2595        method: ::std::os::raw::c_int,
2596        window_bits: ::std::os::raw::c_int,
2597        mem_level: ::std::os::raw::c_int,
2598        strategy: ::std::os::raw::c_int,
2599    ) -> ::std::os::raw::c_int;
2600}
2601extern "C" {
2602    pub fn lzham_z_deflateReset(pStream: lzham_z_streamp) -> ::std::os::raw::c_int;
2603}
2604extern "C" {
2605    pub fn lzham_z_deflate(
2606        pStream: lzham_z_streamp,
2607        flush: ::std::os::raw::c_int,
2608    ) -> ::std::os::raw::c_int;
2609}
2610extern "C" {
2611    pub fn lzham_z_deflateEnd(pStream: lzham_z_streamp) -> ::std::os::raw::c_int;
2612}
2613extern "C" {
2614    pub fn lzham_z_deflateBound(
2615        pStream: lzham_z_streamp,
2616        source_len: lzham_z_ulong,
2617    ) -> lzham_z_ulong;
2618}
2619extern "C" {
2620    pub fn lzham_z_compress(
2621        pDest: *mut ::std::os::raw::c_uchar,
2622        pDest_len: *mut lzham_z_ulong,
2623        pSource: *const ::std::os::raw::c_uchar,
2624        source_len: lzham_z_ulong,
2625    ) -> ::std::os::raw::c_int;
2626}
2627extern "C" {
2628    pub fn lzham_z_compress2(
2629        pDest: *mut ::std::os::raw::c_uchar,
2630        pDest_len: *mut lzham_z_ulong,
2631        pSource: *const ::std::os::raw::c_uchar,
2632        source_len: lzham_z_ulong,
2633        level: ::std::os::raw::c_int,
2634    ) -> ::std::os::raw::c_int;
2635}
2636extern "C" {
2637    pub fn lzham_z_compressBound(source_len: lzham_z_ulong) -> lzham_z_ulong;
2638}
2639extern "C" {
2640    pub fn lzham_z_inflateInit(pStream: lzham_z_streamp) -> ::std::os::raw::c_int;
2641}
2642extern "C" {
2643    pub fn lzham_z_inflateInit2(
2644        pStream: lzham_z_streamp,
2645        window_bits: ::std::os::raw::c_int,
2646    ) -> ::std::os::raw::c_int;
2647}
2648extern "C" {
2649    pub fn lzham_z_inflateReset(pStream: lzham_z_streamp) -> ::std::os::raw::c_int;
2650}
2651extern "C" {
2652    pub fn lzham_z_inflate(
2653        pStream: lzham_z_streamp,
2654        flush: ::std::os::raw::c_int,
2655    ) -> ::std::os::raw::c_int;
2656}
2657extern "C" {
2658    pub fn lzham_z_inflateEnd(pStream: lzham_z_streamp) -> ::std::os::raw::c_int;
2659}
2660extern "C" {
2661    pub fn lzham_z_uncompress(
2662        pDest: *mut ::std::os::raw::c_uchar,
2663        pDest_len: *mut lzham_z_ulong,
2664        pSource: *const ::std::os::raw::c_uchar,
2665        source_len: lzham_z_ulong,
2666    ) -> ::std::os::raw::c_int;
2667}
2668extern "C" {
2669    pub fn lzham_z_error(err: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
2670}
2671pub type lzham_get_version_func = ::std::option::Option<unsafe extern "C" fn() -> lzham_uint32>;
2672pub type lzham_set_memory_callbacks_func = ::std::option::Option<
2673    unsafe extern "C" fn(
2674        pRealloc: lzham_realloc_func,
2675        pMSize: lzham_msize_func,
2676        pUser_data: *mut ::std::os::raw::c_void,
2677    ),
2678>;
2679pub type lzham_compress_init_func = ::std::option::Option<
2680    unsafe extern "C" fn(pParams: *const lzham_compress_params) -> lzham_compress_state_ptr,
2681>;
2682pub type lzham_compress_reinit_func = ::std::option::Option<
2683    unsafe extern "C" fn(pState: lzham_compress_state_ptr) -> lzham_compress_state_ptr,
2684>;
2685pub type lzham_compress_deinit_func =
2686    ::std::option::Option<unsafe extern "C" fn(pState: lzham_compress_state_ptr) -> lzham_uint32>;
2687pub type lzham_compress_func = ::std::option::Option<
2688    unsafe extern "C" fn(
2689        pState: lzham_compress_state_ptr,
2690        pIn_buf: *const lzham_uint8,
2691        pIn_buf_size: *mut usize,
2692        pOut_buf: *mut lzham_uint8,
2693        pOut_buf_size: *mut usize,
2694        no_more_input_bytes_flag: lzham_bool,
2695    ) -> lzham_compress_status_t,
2696>;
2697pub type lzham_compress2_func = ::std::option::Option<
2698    unsafe extern "C" fn(
2699        pState: lzham_compress_state_ptr,
2700        pIn_buf: *const lzham_uint8,
2701        pIn_buf_size: *mut usize,
2702        pOut_buf: *mut lzham_uint8,
2703        pOut_buf_size: *mut usize,
2704        flush_type: lzham_flush_t,
2705    ) -> lzham_compress_status_t,
2706>;
2707pub type lzham_compress_memory_func = ::std::option::Option<
2708    unsafe extern "C" fn(
2709        pParams: *const lzham_compress_params,
2710        pDst_buf: *mut lzham_uint8,
2711        pDst_len: *mut usize,
2712        pSrc_buf: *const lzham_uint8,
2713        src_len: usize,
2714        pAdler32: *mut lzham_uint32,
2715    ) -> lzham_compress_status_t,
2716>;
2717pub type lzham_decompress_init_func = ::std::option::Option<
2718    unsafe extern "C" fn(pParams: *const lzham_decompress_params) -> lzham_decompress_state_ptr,
2719>;
2720pub type lzham_decompress_reinit_func = ::std::option::Option<
2721    unsafe extern "C" fn(
2722        pState: lzham_compress_state_ptr,
2723        pParams: *const lzham_decompress_params,
2724    ) -> lzham_decompress_state_ptr,
2725>;
2726pub type lzham_decompress_deinit_func =
2727    ::std::option::Option<unsafe extern "C" fn(pState: lzham_decompress_state_ptr) -> lzham_uint32>;
2728pub type lzham_decompress_func = ::std::option::Option<
2729    unsafe extern "C" fn(
2730        pState: lzham_decompress_state_ptr,
2731        pIn_buf: *const lzham_uint8,
2732        pIn_buf_size: *mut usize,
2733        pOut_buf: *mut lzham_uint8,
2734        pOut_buf_size: *mut usize,
2735        no_more_input_bytes_flag: lzham_bool,
2736    ) -> lzham_decompress_status_t,
2737>;
2738pub type lzham_decompress_memory_func = ::std::option::Option<
2739    unsafe extern "C" fn(
2740        pParams: *const lzham_decompress_params,
2741        pDst_buf: *mut lzham_uint8,
2742        pDst_len: *mut usize,
2743        pSrc_buf: *const lzham_uint8,
2744        src_len: usize,
2745        pAdler32: *mut lzham_uint32,
2746    ) -> lzham_decompress_status_t,
2747>;
2748pub type lzham_z_version_func =
2749    ::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>;
2750pub type lzham_z_deflateInit_func = ::std::option::Option<
2751    unsafe extern "C" fn(
2752        pStream: lzham_z_streamp,
2753        level: ::std::os::raw::c_int,
2754    ) -> ::std::os::raw::c_int,
2755>;
2756pub type lzham_z_deflateInit2_func = ::std::option::Option<
2757    unsafe extern "C" fn(
2758        pStream: lzham_z_streamp,
2759        level: ::std::os::raw::c_int,
2760        method: ::std::os::raw::c_int,
2761        window_bits: ::std::os::raw::c_int,
2762        mem_level: ::std::os::raw::c_int,
2763        strategy: ::std::os::raw::c_int,
2764    ) -> ::std::os::raw::c_int,
2765>;
2766pub type lzham_z_deflateReset_func =
2767    ::std::option::Option<unsafe extern "C" fn(pStream: lzham_z_streamp) -> ::std::os::raw::c_int>;
2768pub type lzham_z_deflate_func = ::std::option::Option<
2769    unsafe extern "C" fn(
2770        pStream: lzham_z_streamp,
2771        flush: ::std::os::raw::c_int,
2772    ) -> ::std::os::raw::c_int,
2773>;
2774pub type lzham_z_deflateEnd_func =
2775    ::std::option::Option<unsafe extern "C" fn(pStream: lzham_z_streamp) -> ::std::os::raw::c_int>;
2776pub type lzham_z_deflateBound_func = ::std::option::Option<
2777    unsafe extern "C" fn(pStream: lzham_z_streamp, source_len: lzham_z_ulong) -> lzham_z_ulong,
2778>;
2779pub type lzham_z_compress_func = ::std::option::Option<
2780    unsafe extern "C" fn(
2781        pDest: *mut ::std::os::raw::c_uchar,
2782        pDest_len: *mut lzham_z_ulong,
2783        pSource: *const ::std::os::raw::c_uchar,
2784        source_len: lzham_z_ulong,
2785    ) -> ::std::os::raw::c_int,
2786>;
2787pub type lzham_z_compress2_func = ::std::option::Option<
2788    unsafe extern "C" fn(
2789        pDest: *mut ::std::os::raw::c_uchar,
2790        pDest_len: *mut lzham_z_ulong,
2791        pSource: *const ::std::os::raw::c_uchar,
2792        source_len: lzham_z_ulong,
2793        level: ::std::os::raw::c_int,
2794    ) -> ::std::os::raw::c_int,
2795>;
2796pub type lzham_z_compressBound_func =
2797    ::std::option::Option<unsafe extern "C" fn(source_len: lzham_z_ulong) -> lzham_z_ulong>;
2798pub type lzham_z_inflateInit_func =
2799    ::std::option::Option<unsafe extern "C" fn(pStream: lzham_z_streamp) -> ::std::os::raw::c_int>;
2800pub type lzham_z_inflateInit2_func = ::std::option::Option<
2801    unsafe extern "C" fn(
2802        pStream: lzham_z_streamp,
2803        window_bits: ::std::os::raw::c_int,
2804    ) -> ::std::os::raw::c_int,
2805>;
2806pub type lzham_z_inflateReset_func =
2807    ::std::option::Option<unsafe extern "C" fn(pStream: lzham_z_streamp) -> ::std::os::raw::c_int>;
2808pub type lzham_z_inflate_func = ::std::option::Option<
2809    unsafe extern "C" fn(
2810        pStream: lzham_z_streamp,
2811        flush: ::std::os::raw::c_int,
2812    ) -> ::std::os::raw::c_int,
2813>;
2814pub type lzham_z_inflateEnd_func =
2815    ::std::option::Option<unsafe extern "C" fn(pStream: lzham_z_streamp) -> ::std::os::raw::c_int>;
2816pub type lzham_z_uncompress_func = ::std::option::Option<
2817    unsafe extern "C" fn(
2818        pDest: *mut ::std::os::raw::c_uchar,
2819        pDest_len: *mut lzham_z_ulong,
2820        pSource: *const ::std::os::raw::c_uchar,
2821        source_len: lzham_z_ulong,
2822    ) -> ::std::os::raw::c_int,
2823>;
2824pub type lzham_z_error_func = ::std::option::Option<
2825    unsafe extern "C" fn(err: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char,
2826>;
2827#[repr(C)]
2828#[derive(Debug, Copy, Clone)]
2829pub struct __crt_locale_data {
2830    pub _address: u8,
2831}
2832#[repr(C)]
2833#[derive(Debug, Copy, Clone)]
2834pub struct __crt_multibyte_data {
2835    pub _address: u8,
2836}