diff --git a/xpcom/tests/TestHarness.h b/xpcom/tests/TestHarness.h index fa80494baca..f9ca4b32c7c 100644 --- a/xpcom/tests/TestHarness.h +++ b/xpcom/tests/TestHarness.h @@ -44,6 +44,14 @@ #ifndef TestHarness_h__ #define TestHarness_h__ +#if defined(_MSC_VER) && defined(MOZ_STATIC_JS) +/* + * Including jsdbgapi.h may cause build break with --disable-shared-js + * This is a workaround for bug 673616. + */ +#define STATIC_JS_API +#endif + #include "nsComponentManagerUtils.h" #include "nsServiceManagerUtils.h" #include "nsCOMPtr.h"