Bug 1504022 - Map GetExceptionCode to a nop to avoid an error r=bobowen
authorTom Ritter <tom@mozilla.com>
Fri, 02 Nov 2018 13:28:01 -0500
changeset 501216 52a1404ac742b76a5776c41aabc7f9d295e3a08a
parent 501215 c2efa1db3727593d393e2d970ca0f39b0caab844
child 501217 a22d6ae98c2d5f104017b897415a002967b7c6c0
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbobowen
bugs1504022
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1504022 - Map GetExceptionCode to a nop to avoid an error r=bobowen error: '_exception_code' only allowed in __except block or filter expression
mozilla-config.h.in
old mode 100644
new mode 100755
--- a/mozilla-config.h.in
+++ b/mozilla-config.h.in
@@ -49,13 +49,17 @@
 #ifdef __MINGW32__
 /*
  * MinGW doesn't support __try / __except. There are a few mechanisms available
  * to hack around it and pseudo-support it, but these are untested in Firefox.
  * What is tested (and works) is replacing them with if(true) and else.
  */
 #define __try if(true)
 #define __except(x) else
+#ifdef GetExceptionCode
+#undef GetExceptionCode
+#endif
+#define GetExceptionCode() 0
 
 #endif /* __MINGW32__ */
 #endif /* defined(CHROMIUM_SANDBOX_BUILD) && defined(XP_WIN) */
 
 #endif /* MOZILLA_CONFIG_H */