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