modules/woff2/redefine-unique_ptr.patch
author Sebastian Hengst <archaeopteryx@coole-files.de>
Thu, 10 Aug 2017 17:41:11 +0200
changeset 373974 17a9aa5732e58048b1044b3cc12873859d4df3ce
parent 373585 0dc9284b03d41e8ed9096915fd95e18c8b99951c
permissions -rw-r--r--
merge mozilla-central to mozilla-inbound. r=merge a=merge

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 "./brotli/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"