summaryrefslogtreecommitdiffstats
path: root/media/libvpx/clang-cl.patch
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /media/libvpx/clang-cl.patch
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/libvpx/clang-cl.patch')
-rw-r--r--media/libvpx/clang-cl.patch98
1 files changed, 98 insertions, 0 deletions
diff --git a/media/libvpx/clang-cl.patch b/media/libvpx/clang-cl.patch
new file mode 100644
index 000000000..2ca9be883
--- /dev/null
+++ b/media/libvpx/clang-cl.patch
@@ -0,0 +1,98 @@
+Bug 1233983 - Make libvpx build with clang-cl
+
+diff --git a/media/libvpx/vp8/common/generic/systemdependent.c b/media/libvpx/vp8/common/generic/systemdependent.c
+index 4393ced..8ee7e02 100644
+--- a/media/libvpx/vp8/common/generic/systemdependent.c
++++ b/media/libvpx/vp8/common/generic/systemdependent.c
+@@ -24,6 +24,7 @@
+ #include <unistd.h>
+ #elif defined(_WIN32)
+ #include <windows.h>
++#include <intrin.h>
+ typedef void (WINAPI *PGNSI)(LPSYSTEM_INFO);
+ #elif defined(__OS2__)
+ #define INCL_DOS
+diff --git a/media/libvpx/vp8/common/rtcd.c b/media/libvpx/vp8/common/rtcd.c
+index ab0e9b4..98c2ecd 100644
+--- a/media/libvpx/vp8/common/rtcd.c
++++ b/media/libvpx/vp8/common/rtcd.c
+@@ -11,6 +11,9 @@
+ #define RTCD_C
+ #include "./vp8_rtcd.h"
+ #include "vpx_ports/vpx_once.h"
++#ifdef _MSC_VER
++#include <intrin.h>
++#endif
+
+
+ void vp8_rtcd()
+diff --git a/media/libvpx/vp8/decoder/threading.c b/media/libvpx/vp8/decoder/threading.c
+index 6801532..a76672f 100644
+--- a/media/libvpx/vp8/decoder/threading.c
++++ b/media/libvpx/vp8/decoder/threading.c
+@@ -28,6 +28,9 @@
+ #if CONFIG_ERROR_CONCEALMENT
+ #include "error_concealment.h"
+ #endif
++#ifdef _MSC_VER
++#include <intrin.h>
++#endif
+
+ #define CALLOC_ARRAY(p, n) CHECK_MEM_ERROR((p), vpx_calloc(sizeof(*(p)), (n)))
+ #define CALLOC_ARRAY_ALIGNED(p, n, algn) do { \
+diff --git a/media/libvpx/vp8/encoder/encodeframe.c b/media/libvpx/vp8/encoder/encodeframe.c
+index d381d8d..5e84fb4 100644
+--- a/media/libvpx/vp8/encoder/encodeframe.c
++++ b/media/libvpx/vp8/encoder/encodeframe.c
+@@ -34,6 +34,9 @@
+ #include "bitstream.h"
+ #endif
+ #include "encodeframe.h"
++#ifdef _MSC_VER
++#include <intrin.h>
++#endif
+
+ extern void vp8_stuff_mb(VP8_COMP *cpi, MACROBLOCK *x, TOKENEXTRA **t) ;
+ extern void vp8_calc_ref_frame_costs(int *ref_frame_cost,
+diff --git a/media/libvpx/vp8/encoder/ethreading.c b/media/libvpx/vp8/encoder/ethreading.c
+index 4e234cc..519ae73b 100644
+--- a/media/libvpx/vp8/encoder/ethreading.c
++++ b/media/libvpx/vp8/encoder/ethreading.c
+@@ -14,6 +14,9 @@
+ #include "vp8/common/extend.h"
+ #include "bitstream.h"
+ #include "encodeframe.h"
++#ifdef _MSC_VER
++#include <intrin.h>
++#endif
+
+ #if CONFIG_MULTITHREAD
+
+diff --git a/media/libvpx/vpx_dsp/vpx_dsp_rtcd.c b/media/libvpx/vpx_dsp/vpx_dsp_rtcd.c
+index 5fe27b6..d247603 100644
+--- a/media/libvpx/vpx_dsp/vpx_dsp_rtcd.c
++++ b/media/libvpx/vpx_dsp/vpx_dsp_rtcd.c
+@@ -11,6 +11,9 @@
+ #define RTCD_C
+ #include "./vpx_dsp_rtcd.h"
+ #include "vpx_ports/vpx_once.h"
++#ifdef _MSC_VER
++#include <intrin.h>
++#endif
+
+ void vpx_dsp_rtcd() {
+ once(setup_rtcd_internal);
+diff --git a/media/libvpx/vpx_scale/vpx_scale_rtcd.c b/media/libvpx/vpx_scale/vpx_scale_rtcd.c
+index bea603f..65532ba 100644
+--- a/media/libvpx/vpx_scale/vpx_scale_rtcd.c
++++ b/media/libvpx/vpx_scale/vpx_scale_rtcd.c
+@@ -11,6 +11,9 @@
+ #define RTCD_C
+ #include "./vpx_scale_rtcd.h"
+ #include "vpx_ports/vpx_once.h"
++#ifdef _MSC_VER
++#include <intrin.h>
++#endif
+
+ void vpx_scale_rtcd()
+ {