From 7b672f8b6ea569942b6116d7078c15a6b28861de Mon Sep 17 00:00:00 2001 From: yixy-only Date: Thu, 28 Nov 2024 18:33:18 +0800 Subject: [PATCH] =?UTF-8?q?adjust:=20stdint.h=20=E7=A7=BB=E8=87=B3=20inclu?= =?UTF-8?q?de/ege=20=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/ege.h | 1 + {src => include/ege}/stdint.h | 0 src/types.h | 10 ---------- 3 files changed, 1 insertion(+), 10 deletions(-) rename {src => include/ege}/stdint.h (100%) diff --git a/include/ege.h b/include/ege.h index 2f25eff..e71c8fe 100644 --- a/include/ege.h +++ b/include/ege.h @@ -72,6 +72,7 @@ #endif #endif +#include "ege/stdint.h" #if defined(EGE_FOR_AUTO_CODE_COMPLETETION_ONLY) #include diff --git a/src/stdint.h b/include/ege/stdint.h similarity index 100% rename from src/stdint.h rename to include/ege/stdint.h diff --git a/src/types.h b/src/types.h index f7d9b6d..c3ede00 100644 --- a/src/types.h +++ b/src/types.h @@ -1,15 +1,5 @@ #pragma once -// MSVC 从 10.0(VS2010)开始有 stdint.h -// GCC 从 4.5 开始有 stdint.h -#if _MSC_VER >= 1600 || __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) -#include -#elif !defined(_MSC_VER) || _MSC_VER > 1300 -#include "stdint.h" -#else -typedef unsigned uint32_t; -#endif - #include #include