add missing includes of <cstdint> (PR #10499)
This commit is contained in:
parent
1ec051e770
commit
4846f8c211
3
deps/OpenEXR/OpenEXR.cmake
vendored
3
deps/OpenEXR/OpenEXR.cmake
vendored
@ -4,6 +4,7 @@ prusaslicer_add_cmake_project(OpenEXR
|
|||||||
URL_HASH SHA256=0307a3d7e1fa1e77e9d84d7e9a8694583fbbbfd50bdc6884e2c96b8ef6b902de
|
URL_HASH SHA256=0307a3d7e1fa1e77e9d84d7e9a8694583fbbbfd50bdc6884e2c96b8ef6b902de
|
||||||
DEPENDS ${ZLIB_PKG}
|
DEPENDS ${ZLIB_PKG}
|
||||||
GIT_TAG v2.5.5
|
GIT_TAG v2.5.5
|
||||||
|
PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/OpenEXR.patch
|
||||||
CMAKE_ARGS
|
CMAKE_ARGS
|
||||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
||||||
-DBUILD_TESTING=OFF
|
-DBUILD_TESTING=OFF
|
||||||
@ -14,4 +15,4 @@ prusaslicer_add_cmake_project(OpenEXR
|
|||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_debug_dep(dep_OpenEXR)
|
add_debug_dep(dep_OpenEXR)
|
||||||
endif ()
|
endif ()
|
||||||
|
36
deps/OpenEXR/OpenEXR.patch
vendored
Normal file
36
deps/OpenEXR/OpenEXR.patch
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
diff --git a/OpenEXR/IlmImf/ImfDwaCompressor.cpp b/OpenEXR/IlmImf/ImfDwaCompressor.cpp
|
||||||
|
index 59d1d5d1..585a3e65 100644
|
||||||
|
--- a/OpenEXR/IlmImf/ImfDwaCompressor.cpp
|
||||||
|
+++ b/OpenEXR/IlmImf/ImfDwaCompressor.cpp
|
||||||
|
@@ -159,6 +159,7 @@
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
|
#include <cstddef>
|
||||||
|
+#include <cstdint>
|
||||||
|
|
||||||
|
|
||||||
|
// Windows specific addition to prevent the indirect import of the redefined min/max macros
|
||||||
|
diff --git a/OpenEXR/IlmImf/ImfHuf.cpp b/OpenEXR/IlmImf/ImfHuf.cpp
|
||||||
|
index 271849b7..165fac58 100644
|
||||||
|
--- a/OpenEXR/IlmImf/ImfHuf.cpp
|
||||||
|
+++ b/OpenEXR/IlmImf/ImfHuf.cpp
|
||||||
|
@@ -53,6 +53,7 @@
|
||||||
|
#include <cstring>
|
||||||
|
#include <cassert>
|
||||||
|
#include <algorithm>
|
||||||
|
+#include <cstdint>
|
||||||
|
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
diff --git a/OpenEXR/IlmImf/ImfMisc.cpp b/OpenEXR/IlmImf/ImfMisc.cpp
|
||||||
|
index d2c84787..4b487940 100644
|
||||||
|
--- a/OpenEXR/IlmImf/ImfMisc.cpp
|
||||||
|
+++ b/OpenEXR/IlmImf/ImfMisc.cpp
|
||||||
|
@@ -40,6 +40,7 @@
|
||||||
|
//
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <ImfMisc.h>
|
||||||
|
#include <ImfHeader.h>
|
||||||
|
#include <ImfAttribute.h>
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <istream>
|
#include <istream>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace Slic3r { namespace png {
|
namespace Slic3r { namespace png {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user