add missing headers

This commit is contained in:
SpaceIm
2022-12-05 11:53:52 +01:00
parent 5b6a06f633
commit 5d8f418462
2 changed files with 16 additions and 0 deletions

View File

@@ -7,3 +7,6 @@ patches:
- patch_file: "patches/0001-fix-cmake.patch" - patch_file: "patches/0001-fix-cmake.patch"
patch_description: "Fix CMakeLists: no warnings as errors, allow shared, add install target, and add profile & debug_renderer options" patch_description: "Fix CMakeLists: no warnings as errors, allow shared, add install target, and add profile & debug_renderer options"
patch_type: "conan" patch_type: "conan"
- patch_file: "patches/0002-missing-headers.patch"
patch_description: "Add missing includes of standard C++ lib headers"
patch_type: "portability"

View File

@@ -0,0 +1,13 @@
--- a/Jolt/Core/Core.h
+++ b/Jolt/Core/Core.h
@@ -252,6 +252,10 @@ JPH_SUPPRESS_WARNINGS_STD_BEGIN
#include <sstream>
#include <functional>
#include <algorithm>
+#include <limits>
+#include <string>
+#include <string_view>
+#include <type_traits>
JPH_SUPPRESS_WARNINGS_STD_END
#include <limits.h>
#include <float.h>