File x265.patch of Package x265

27
 
1
---
2
 source/CMakeLists.txt                 |    2 +-
3
 source/dynamicHDR10/json11/json11.cpp |    1 +
4
 2 files changed, 2 insertions(+), 1 deletion(-)
5
6
--- a/source/CMakeLists.txt
7
+++ b/source/CMakeLists.txt
8
@@ -13,7 +13,7 @@
9
     cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH
10
 endif()
11
 if(POLICY CMP0054)
12
-    cmake_policy(SET CMP0054 OLD) # Only interpret if() arguments as variables or keywords when unquoted
13
+    cmake_policy(SET CMP0054 NEW) # Only interpret if() arguments as variables or keywords when unquoted
14
 endif()
15
 
16
 project (x265)
17
--- a/source/dynamicHDR10/json11/json11.cpp
18
+++ b/source/dynamicHDR10/json11/json11.cpp
19
@@ -24,6 +24,7 @@
20
 #include <cmath>
21
 #include <cstdlib>
22
 #include <cstdio>
23
+#include <cstdint>
24
 #include <limits>
25
 
26
 #if _MSC_VER
27