Bug 679473 - TestNativeXMLHttpRequest.exe : fatal error LNK1120: 6 unresolved externals. r=khuey
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Thu, 18 Aug 2011 09:33:58 +0900
changeset 75410 7054f0e3e70e12243256f0e9ceb2a51b66824281
parent 75409 3976958e0e32566ea268b264f56320f9d79f2933
child 75411 b91dc5057fde2447e94217c5accaa2014086b810
push id21019
push userm_kato@ga2.so-net.ne.jp
push dateThu, 18 Aug 2011 00:36:42 +0000
treeherdermozilla-central@7054f0e3e70e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs679473
milestone9.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 679473 - TestNativeXMLHttpRequest.exe : fatal error LNK1120: 6 unresolved externals. r=khuey
xpcom/tests/TestHarness.h
--- a/xpcom/tests/TestHarness.h
+++ b/xpcom/tests/TestHarness.h
@@ -39,16 +39,24 @@
  * Test harness for XPCOM objects, providing a scoped XPCOM initializer,
  * nsCOMPtr, nsRefPtr, do_CreateInstance, do_GetService, ns(Auto|C|)String,
  * and stdio.h/stdlib.h.
  */
 
 #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"
 #include "nsAutoPtr.h"
 #include "nsStringGlue.h"
 #include "nsAppDirectoryServiceDefs.h"
 #include "nsDirectoryServiceDefs.h"
 #include "nsDirectoryServiceUtils.h"