2022-07-31 09:11:28 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-08-04 09:00:01 +00:00
|
|
|
#if !defined(NULL)
|
|
|
|
#define NULL ((void *)0)
|
|
|
|
#endif
|
2022-07-31 09:11:28 +00:00
|
|
|
|
2022-08-04 09:00:01 +00:00
|
|
|
#define offsetof(st, m) ((size_t)((char *)&((st *)0)->m - (char *)0))
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
|
|
|
typedef long long ptrdiff_t;
|
|
|
|
typedef unsigned long long size_t;
|
|
|
|
typedef unsigned long long max_align_t;
|
|
|
|
typedef unsigned short wchar_t;
|
|
|
|
#else
|
|
|
|
typedef long ptrdiff_t;
|
|
|
|
typedef unsigned long size_t;
|
|
|
|
typedef unsigned long max_align_t;
|
|
|
|
typedef int wchar_t;
|
|
|
|
#endif
|
|
|
|
|
2022-08-10 06:12:33 +00:00
|
|
|
#if __STDC_WANT_LIB_EXT1__ == 1
|
|
|
|
typedef size_t rsize_t;
|
|
|
|
#endif
|