summaryrefslogtreecommitdiffstats
path: root/modules/woff2/redefine-unique_ptr.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 /modules/woff2/redefine-unique_ptr.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 'modules/woff2/redefine-unique_ptr.patch')
-rw-r--r--modules/woff2/redefine-unique_ptr.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/woff2/redefine-unique_ptr.patch b/modules/woff2/redefine-unique_ptr.patch
new file mode 100644
index 000000000..888ed8cc1
--- /dev/null
+++ b/modules/woff2/redefine-unique_ptr.patch
@@ -0,0 +1,29 @@
+diff --git a/modules/woff2/src/woff2_dec.cc b/modules/woff2/src/woff2_dec.cc
+--- a/modules/woff2/src/woff2_dec.cc
++++ b/modules/woff2/src/woff2_dec.cc
+@@ -22,16 +22,25 @@
+ #include <cstring>
+ #include <limits>
+ #include <string>
+ #include <vector>
+ #include <map>
+ #include <memory>
+ #include <utility>
+
++#include "mozilla/UniquePtr.h"
++namespace std
++{
++ using mozilla::DefaultDelete;
++ using mozilla::UniquePtr;
++ #define default_delete DefaultDelete
++ #define unique_ptr UniquePtr
++}
++
+ #include "./decode.h"
+ #include "./buffer.h"
+ #include "./port.h"
+ #include "./round.h"
+ #include "./store_bytes.h"
+ #include "./table_tags.h"
+ #include "./variable_length.h"
+ #include "./woff2_common.h"