skypjack 3 дней назад
Родитель
Сommit
5cc2397069

+ 1 - 0
CMakeLists.txt

@@ -199,6 +199,7 @@ if(ENTT_INCLUDE_HEADERS)
         stl/array.hpp
         stl/atomic.hpp
         stl/cstddef.hpp
+        stl/cstdint.hpp
         stl/functional.hpp
         stl/iterator.hpp
         stl/memory.hpp

+ 1 - 1
src/entt/core/fwd.hpp

@@ -1,9 +1,9 @@
 #ifndef ENTT_CORE_FWD_HPP
 #define ENTT_CORE_FWD_HPP
 
-#include <cstdint>
 #include "../config/config.h"
 #include "../stl/cstddef.hpp"
+#include "../stl/cstdint.hpp"
 
 namespace entt {
 

+ 1 - 1
src/entt/core/hashed_string.hpp

@@ -1,8 +1,8 @@
 #ifndef ENTT_CORE_HASHED_STRING_HPP
 #define ENTT_CORE_HASHED_STRING_HPP
 
-#include <cstdint>
 #include "../stl/cstddef.hpp"
+#include "../stl/cstdint.hpp"
 #include "fwd.hpp"
 
 namespace entt {

+ 1 - 1
src/entt/entity/entity.hpp

@@ -3,10 +3,10 @@
 
 #include <bit>
 #include <concepts>
-#include <cstdint>
 #include "../config/config.h"
 #include "../core/bit.hpp"
 #include "../stl/cstddef.hpp"
+#include "../stl/cstdint.hpp"
 #include "../stl/type_traits.hpp"
 #include "fwd.hpp"
 

+ 1 - 1
src/entt/entity/fwd.hpp

@@ -1,12 +1,12 @@
 #ifndef ENTT_ENTITY_FWD_HPP
 #define ENTT_ENTITY_FWD_HPP
 
-#include <cstdint>
 #include <memory>
 #include "../config/config.h"
 #include "../core/concepts.hpp"
 #include "../core/fwd.hpp"
 #include "../core/type_traits.hpp"
+#include "../stl/cstdint.hpp"
 #include "../stl/type_traits.hpp"
 
 namespace entt {

+ 1 - 0
src/entt/entt.hpp

@@ -73,6 +73,7 @@ namespace entt::stl {}
 #include "stl/array.hpp"
 #include "stl/atomic.hpp"
 #include "stl/cstddef.hpp"
+#include "stl/cstdint.hpp"
 #include "stl/functional.hpp"
 #include "stl/iterator.hpp"
 #include "stl/memory.hpp"

+ 1 - 1
src/entt/meta/factory.hpp

@@ -2,7 +2,6 @@
 #define ENTT_META_FACTORY_HPP
 
 #include <concepts>
-#include <cstdint>
 #include <functional>
 #include <memory>
 #include "../config/config.h"
@@ -13,6 +12,7 @@
 #include "../core/type_traits.hpp"
 #include "../locator/locator.hpp"
 #include "../stl/cstddef.hpp"
+#include "../stl/cstdint.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "context.hpp"

+ 1 - 1
src/entt/process/fwd.hpp

@@ -1,8 +1,8 @@
 #ifndef ENTT_PROCESS_FWD_HPP
 #define ENTT_PROCESS_FWD_HPP
 
-#include <cstdint>
 #include <memory>
+#include "../stl/cstdint.hpp"
 
 namespace entt {
 

+ 1 - 1
src/entt/process/process.hpp

@@ -1,10 +1,10 @@
 #ifndef ENTT_PROCESS_PROCESS_HPP
 #define ENTT_PROCESS_PROCESS_HPP
 
-#include <cstdint>
 #include <memory>
 #include "../core/compressed_pair.hpp"
 #include "../core/type_traits.hpp"
+#include "../stl/cstdint.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "fwd.hpp"

+ 12 - 0
src/entt/stl/cstdint.hpp

@@ -0,0 +1,12 @@
+#ifndef ENTT_STL_CSTDINT_HPP
+#define ENTT_STL_CSTDINT_HPP
+
+#include <cstdint>
+
+/*! @cond ENTT_INTERNAL */
+namespace entt::stl {
+
+} // namespace entt::stl
+/*! @endcond */
+
+#endif

+ 1 - 1
src/entt/tools/davey.hpp

@@ -1,7 +1,6 @@
 #ifndef ENTT_TOOLS_DAVEY_HPP
 #define ENTT_TOOLS_DAVEY_HPP
 
-#include <cstdint>
 #include <ios>
 #include <sstream>
 #include <string>
@@ -16,6 +15,7 @@
 #include "../meta/meta.hpp"
 #include "../meta/pointer.hpp"
 #include "../meta/resolve.hpp"
+#include "../stl/cstdint.hpp"
 
 #if __has_include(<imgui.h>)
 #    include <imgui.h>