summaryrefslogtreecommitdiffstats
path: root/src/x265-1-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src/x265-1-fixes.patch')
-rw-r--r--src/x265-1-fixes.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/x265-1-fixes.patch b/src/x265-1-fixes.patch
new file mode 100644
index 0000000..9ffa25f
--- /dev/null
+++ b/src/x265-1-fixes.patch
@@ -0,0 +1,36 @@
+This file is part of MXE. See LICENSE.md for licensing information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: darealshinji <djcj@gmx.de>
+Date: Sat, 1 Jul 2017 17:09:40 +0200
+Subject: [PATCH] Use C++14 so we can build with dynamicHDR
+
+
+diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/source/CMakeLists.txt
++++ b/source/CMakeLists.txt
+@@ -187,7 +187,7 @@ endif()
+ if(GCC)
+ add_definitions(-Wall -Wextra -Wshadow)
+ add_definitions(-D__STDC_LIMIT_MACROS=1)
+- add_definitions(-std=gnu++98)
++ add_definitions(-std=gnu++14)
+ if(ENABLE_PIC)
+ add_definitions(-fPIC)
+ endif(ENABLE_PIC)
+diff --git a/source/encoder/encoder.h b/source/encoder/encoder.h
+index 1111111..2222222 100644
+--- a/source/encoder/encoder.h
++++ b/source/encoder/encoder.h
+@@ -33,7 +33,7 @@
+ #include "framedata.h"
+
+ #ifdef ENABLE_DYNAMIC_HDR10
+- #include "dynamicHDR10\hdr10plus.h"
++ #include "dynamicHDR10/hdr10plus.h"
+ #endif
+
+ struct x265_encoder {};