stage2 解决类型重复导入的问题
This commit is contained in:
1 parent
51d408d524
commit
d10578d267
2 files changed
+16
No files matched your search
@@ -9,8 +9,16 @@
|
|||||||
#ifndef nullptr
|
#ifndef nullptr
|
||||||
#define nullptr NULL
|
#define nullptr NULL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef SPL_USIZE
|
||||||
|
#define SPL_USIZE
|
||||||
typedef uintptr_t usize;
|
typedef uintptr_t usize;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SPL_ISIZE
|
||||||
|
#define SPL_ISIZE
|
||||||
typedef intptr_t isize;
|
typedef intptr_t isize;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MAP_TYPEOF __typeof__
|
#define MAP_TYPEOF __typeof__
|
||||||
|
|
||||||
|
|||||||
@@ -31,8 +31,16 @@ typedef unsigned int u32;
|
|||||||
typedef signed int i32;
|
typedef signed int i32;
|
||||||
typedef unsigned long long u64;
|
typedef unsigned long long u64;
|
||||||
typedef signed long long i64;
|
typedef signed long long i64;
|
||||||
|
|
||||||
|
#ifndef SPL_USIZE
|
||||||
typedef u64 usize;
|
typedef u64 usize;
|
||||||
|
#define SPL_USIZE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SPL_ISIZE
|
||||||
typedef i64 isize;
|
typedef i64 isize;
|
||||||
|
#define SPL_ISIZE
|
||||||
|
#endif
|
||||||
/* 注:不定义 bool/true/false,避免与 C23 关键字冲突;生成代码用 u8 表示布尔。 */
|
/* 注:不定义 bool/true/false,避免与 C23 关键字冲突;生成代码用 u8 表示布尔。 */
|
||||||
|
|
||||||
/* ---- panic / trap ---- */
|
/* ---- panic / trap ---- */
|
||||||
|
|||||||
Reference in new issue
Block a user