Foundations

This commit is contained in:
2026-08-29 01:50:50 +08:00
parent bf5fc3bda6
commit 8e95904cc4
100 changed files with 13997 additions and 0 deletions
+14
View File
@@ -1,6 +1,11 @@
#ifndef INCLUDED_C_PLATFORM_H
#define INCLUDED_C_PLATFORM_H
#ifndef INCLUDED_C_CONFIG_H
#include <c_Config.h>
#endif /*INCLUDED_C_CONFIG_H*/
/* ==============================================================================
* 🎯 1. 编译器类型常量(严格以 C_ 开头)
* ============================================================================== */
@@ -127,5 +132,14 @@
#define C_ENVIRONMENT_IS_MINGW 0
#endif
/* ------------------------------------------------------------------------------------------------------------------ */
/* */
#if (C_SIZEOF_VOID_P==8)
#define C_PLATFORM_IS_64BIT
#elif (C_SIZEOF_VOID_P==4)
#define C_PLATFORM_IS_32BIT
#endif
#endif /*INCLUDED_C_PLATFORM_H*/