8bc60c9
diff -uNr 0ad-0.0.21-alpha.orig/source/scriptinterface/ScriptTypes.h 0ad-0.0.21-alpha/source/scriptinterface/ScriptTypes.h
8bc60c9
--- 0ad-0.0.21-alpha.orig/source/scriptinterface/ScriptTypes.h	2016-09-02 18:19:31.000000000 +0200
8bc60c9
+++ 0ad-0.0.21-alpha/source/scriptinterface/ScriptTypes.h	2016-11-09 07:14:16.227277422 +0100
8bc60c9
@@ -79,19 +79,6 @@
8bc60c9
 include paths.
8bc60c9
 #endif
8bc60c9
 
8bc60c9
-#if MOZJS_MINOR_VERSION != 3
8bc60c9
-#error Your compiler is trying to use an untested minor version of the \
8bc60c9
-SpiderMonkey library. If you are a package maintainer, please make sure \
8bc60c9
-to check very carefully that this version does not change the behaviour \
8bc60c9
-of the code executed by SpiderMonkey. Different parts of the game (e.g. \
8bc60c9
-the multiplayer mode) rely on deterministic behaviour of the JavaScript \
8bc60c9
-engine. A simple way for testing this would be playing a network game \
8bc60c9
-with one player using the old version and one player using the new \
8bc60c9
-version. Another way for testing is running replays and comparing the \
8bc60c9
-final hash (check trac.wildfiregames.com/wiki/Debugging#Replaymode). \
8bc60c9
-For more information check this link: trac.wildfiregames.com/wiki/Debugging#Outofsync
8bc60c9
-#endif
8bc60c9
-
8bc60c9
 class ScriptInterface;
8bc60c9
 
8bc60c9
 #endif // INCLUDED_SCRIPTTYPES
26dc165
diff -uNr 0ad-0.0.21-alpha.orig/source/simulation2/serialization/BinarySerializer.cpp 0ad-0.0.21-alpha/source/simulation2/serialization/BinarySerializer.cpp
26dc165
--- 0ad-0.0.21-alpha.orig/source/simulation2/serialization/BinarySerializer.cpp	2016-09-18 11:34:45.000000000 +0200
26dc165
+++ 0ad-0.0.21-alpha/source/simulation2/serialization/BinarySerializer.cpp	2016-11-09 07:29:10.293824242 +0100
26dc165
@@ -145,11 +145,7 @@
26dc165
 			const JSClass* jsclass = JS_GetClass(obj);
26dc165
 			if (!jsclass)
26dc165
 				throw PSERROR_Serialize_ScriptError("JS_GetClass failed");
26dc165
-// TODO: Remove this workaround for upstream API breakage when updating SpiderMonkey
26dc165
-// See https://bugzilla.mozilla.org/show_bug.cgi?id=1236373
26dc165
-#define JSCLASS_CACHED_PROTO_WIDTH js::JSCLASS_CACHED_PROTO_WIDTH
26dc165
 			JSProtoKey protokey = JSCLASS_CACHED_PROTO_KEY(jsclass);
26dc165
-#undef JSCLASS_CACHED_PROTO_WIDTH
26dc165
 
26dc165
 			if (protokey == JSProto_Object)
26dc165
 			{