diff --git a/docshell/base/nsWebShell.cpp b/docshell/base/nsWebShell.cpp index 5a189e60dd9a..5e50aa075314 100644 --- a/docshell/base/nsWebShell.cpp +++ b/docshell/base/nsWebShell.cpp @@ -546,6 +546,7 @@ public: #ifdef NS_DEBUG unsigned long nsWebShell::gNumberOfWebShells = 0; +extern "C" NS_WEB unsigned long NS_TotalWebShellsInExistence() { diff --git a/webshell/src/nsWebShell.cpp b/webshell/src/nsWebShell.cpp index 5a189e60dd9a..5e50aa075314 100644 --- a/webshell/src/nsWebShell.cpp +++ b/webshell/src/nsWebShell.cpp @@ -546,6 +546,7 @@ public: #ifdef NS_DEBUG unsigned long nsWebShell::gNumberOfWebShells = 0; +extern "C" NS_WEB unsigned long NS_TotalWebShellsInExistence() {