diff --git a/caps/src/nsSecurityManagerFactory.cpp b/caps/src/nsSecurityManagerFactory.cpp index 4b0c1055620..2ae4d5459ba 100644 --- a/caps/src/nsSecurityManagerFactory.cpp +++ b/caps/src/nsSecurityManagerFactory.cpp @@ -67,3 +67,13 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("nsSecurityManagerModule", components); +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + + diff --git a/chrome/src/nsChromeFactory.cpp b/chrome/src/nsChromeFactory.cpp index 4b25c4767af..43fc2e282a8 100644 --- a/chrome/src/nsChromeFactory.cpp +++ b/chrome/src/nsChromeFactory.cpp @@ -53,3 +53,13 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("nsChromeModule", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/content/build/nsContentModule.cpp b/content/build/nsContentModule.cpp index 231878a6469..8ba6c06dd3e 100644 --- a/content/build/nsContentModule.cpp +++ b/content/build/nsContentModule.cpp @@ -452,3 +452,12 @@ nsContentModule::CanUnload(nsIComponentManager *aCompMgr, PRBool *okToUnload) return NS_ERROR_FAILURE; } +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/db/mork/build/nsMorkFactory.cpp b/db/mork/build/nsMorkFactory.cpp index 3685e8087d5..0f4185c0d1b 100644 --- a/db/mork/build/nsMorkFactory.cpp +++ b/db/mork/build/nsMorkFactory.cpp @@ -92,3 +92,12 @@ NS_IMETHODIMP nsMorkFactoryFactory::GetMdbFactory(nsIMdbFactory **aFactory) return (gMDBFactory) ? NS_OK : NS_ERROR_OUT_OF_MEMORY; } +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/docshell/build/nsDocShellModule.cpp b/docshell/build/nsDocShellModule.cpp index cff082bea23..ffdbdd52cbb 100644 --- a/docshell/build/nsDocShellModule.cpp +++ b/docshell/build/nsDocShellModule.cpp @@ -50,3 +50,13 @@ static nsModuleComponentInfo gDocShellModuleInfo[] = { // be dispensing docshells rather than webshells. NS_IMPL_NSGETMODULE("docshell provider", gDocShellModuleInfo) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/dom/src/build/nsDOMFactory.cpp b/dom/src/build/nsDOMFactory.cpp index 3b25147e24c..7da4bcbc0eb 100644 --- a/dom/src/build/nsDOMFactory.cpp +++ b/dom/src/build/nsDOMFactory.cpp @@ -861,3 +861,13 @@ void DumpJSEval(PRUint32 frame, const char* text) JS_END_EXTERN_C #endif + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/editor/base/nsEditor.cpp b/editor/base/nsEditor.cpp index 6b9c93e7d1f..51d6541f0a7 100644 --- a/editor/base/nsEditor.cpp +++ b/editor/base/nsEditor.cpp @@ -5605,3 +5605,13 @@ nsEditor::CreateHTMLContent(const nsString& aTag, nsIContent** aContent) return NS_OK; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index 6b9c93e7d1f..51d6541f0a7 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -5605,3 +5605,13 @@ nsEditor::CreateHTMLContent(const nsString& aTag, nsIContent** aContent) return NS_OK; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/editor/libeditor/txtsvc/nsTextServicesFactory.cpp b/editor/libeditor/txtsvc/nsTextServicesFactory.cpp index 0481b7c2f03..addd6f5dcc5 100644 --- a/editor/libeditor/txtsvc/nsTextServicesFactory.cpp +++ b/editor/libeditor/txtsvc/nsTextServicesFactory.cpp @@ -55,3 +55,13 @@ static nsModuleComponentInfo components[] = { // and the entire implementation of the module object. // NS_IMPL_NSGETMODULE("nsTextServicesModule", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/editor/txmgr/src/nsTransactionManager.cpp b/editor/txmgr/src/nsTransactionManager.cpp index f895f621e86..380e09541b8 100644 --- a/editor/txmgr/src/nsTransactionManager.cpp +++ b/editor/txmgr/src/nsTransactionManager.cpp @@ -1231,3 +1231,13 @@ nsTransactionManager::Unlock() return NS_OK; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/editor/txtsvc/src/nsTextServicesFactory.cpp b/editor/txtsvc/src/nsTextServicesFactory.cpp index 0481b7c2f03..addd6f5dcc5 100644 --- a/editor/txtsvc/src/nsTextServicesFactory.cpp +++ b/editor/txtsvc/src/nsTextServicesFactory.cpp @@ -55,3 +55,13 @@ static nsModuleComponentInfo components[] = { // and the entire implementation of the module object. // NS_IMPL_NSGETMODULE("nsTextServicesModule", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/embedding/browser/build/nsWebBrowserModule.cpp b/embedding/browser/build/nsWebBrowserModule.cpp index 5debb6eb3a7..27a10c4cc0a 100644 --- a/embedding/browser/build/nsWebBrowserModule.cpp +++ b/embedding/browser/build/nsWebBrowserModule.cpp @@ -53,3 +53,12 @@ NS_IMPL_NSGETMODULE("Browser Embedding Module", components) +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/embedding/components/build/nsModule.cpp b/embedding/components/build/nsModule.cpp index ee2a9cdbda0..7ed9a0d279a 100644 --- a/embedding/components/build/nsModule.cpp +++ b/embedding/components/build/nsModule.cpp @@ -34,3 +34,13 @@ static nsModuleComponentInfo components[] = { }; NS_IMPL_NSGETMODULE("embedcomponents", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/extensions/cookie/nsCookieService.cpp b/extensions/cookie/nsCookieService.cpp index 1fba8896f42..e468110de49 100644 --- a/extensions/cookie/nsCookieService.cpp +++ b/extensions/cookie/nsCookieService.cpp @@ -194,3 +194,13 @@ NS_IMETHODIMP nsCookieService::Observe(nsISupports *aSubject, const PRUnichar *a return rv; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/extensions/wallet/build/nsWalletViewerFactory.cpp b/extensions/wallet/build/nsWalletViewerFactory.cpp index f7e6e5438a6..0fdb18e2dec 100644 --- a/extensions/wallet/build/nsWalletViewerFactory.cpp +++ b/extensions/wallet/build/nsWalletViewerFactory.cpp @@ -44,3 +44,12 @@ static nsModuleComponentInfo components[] = { NS_IMPL_NSGETMODULE("nsWalletViewerModule", components) +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/extensions/wallet/src/nsWalletFactory.cpp b/extensions/wallet/src/nsWalletFactory.cpp index 70db98ec030..97bcf4c2b65 100644 --- a/extensions/wallet/src/nsWalletFactory.cpp +++ b/extensions/wallet/src/nsWalletFactory.cpp @@ -39,3 +39,13 @@ static nsModuleComponentInfo components[] = { }; NS_IMPL_NSGETMODULE("nsWalletModule", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/extensions/xmlextras/build/src/nsXMLExtrasModule.cpp b/extensions/xmlextras/build/src/nsXMLExtrasModule.cpp index b45b50a6d7b..4df5258fbc1 100644 --- a/extensions/xmlextras/build/src/nsXMLExtrasModule.cpp +++ b/extensions/xmlextras/build/src/nsXMLExtrasModule.cpp @@ -232,3 +232,13 @@ static nsModuleComponentInfo components[] = { }; NS_IMPL_NSGETMODULE("nsXMLExtrasModule", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/gfx/src/nsBlender.cpp b/gfx/src/nsBlender.cpp index db3725da5d2..dfe060eecf4 100644 --- a/gfx/src/nsBlender.cpp +++ b/gfx/src/nsBlender.cpp @@ -968,3 +968,13 @@ register PRUint32 *bp; //------------------------------------------------------------ + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/intl/chardet/src/nsCharDetModule.cpp b/intl/chardet/src/nsCharDetModule.cpp index 8e99796053d..c98a8beec1d 100644 --- a/intl/chardet/src/nsCharDetModule.cpp +++ b/intl/chardet/src/nsCharDetModule.cpp @@ -462,3 +462,13 @@ extern "C" NS_EXPORT nsresult NSGetModule(nsIComponentManager *servMgr, gModule = m; // WARNING: Weak Reference return rv; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/intl/lwbrk/src/nsLWBrkModule.cpp b/intl/lwbrk/src/nsLWBrkModule.cpp index fd2d9a7aedb..8186a3952ae 100644 --- a/intl/lwbrk/src/nsLWBrkModule.cpp +++ b/intl/lwbrk/src/nsLWBrkModule.cpp @@ -38,3 +38,13 @@ static nsModuleComponentInfo components[] = { }; NS_IMPL_NSGETMODULE("nsLWBrkModule", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/intl/strres/src/nsStringBundle.cpp b/intl/strres/src/nsStringBundle.cpp index 17d432fbfae..d468dd2219c 100644 --- a/intl/strres/src/nsStringBundle.cpp +++ b/intl/strres/src/nsStringBundle.cpp @@ -1211,3 +1211,13 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("nsStringBundleModule", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/intl/uconv/src/nsUConvModule.cpp b/intl/uconv/src/nsUConvModule.cpp index d72cc1870a3..4371dbf903b 100644 --- a/intl/uconv/src/nsUConvModule.cpp +++ b/intl/uconv/src/nsUConvModule.cpp @@ -370,3 +370,13 @@ extern "C" NS_EXPORT nsresult NSGetModule(nsIComponentManager *servMgr, gModule = m; // WARNING: Weak Reference return rv; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/intl/uconv/ucvcn/nsUCvCnModule.cpp b/intl/uconv/ucvcn/nsUCvCnModule.cpp index 2ccd0ee4a0d..942d4c1e73d 100644 --- a/intl/uconv/ucvcn/nsUCvCnModule.cpp +++ b/intl/uconv/ucvcn/nsUCvCnModule.cpp @@ -162,3 +162,13 @@ static nsModuleComponentInfo components[] = }; NS_IMPL_NSGETMODULE("nsUCvCnModule", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/intl/uconv/ucvja/nsUCvJaModule.cpp b/intl/uconv/ucvja/nsUCvJaModule.cpp index aa120b9eaf9..a6be5f94e6f 100644 --- a/intl/uconv/ucvja/nsUCvJaModule.cpp +++ b/intl/uconv/ucvja/nsUCvJaModule.cpp @@ -154,3 +154,13 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("nsUCvTWModule", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/intl/uconv/ucvlatin/nsUCvLatinModule.cpp b/intl/uconv/ucvlatin/nsUCvLatinModule.cpp index 4d078b58e95..c5b3cd65fcf 100644 --- a/intl/uconv/ucvlatin/nsUCvLatinModule.cpp +++ b/intl/uconv/ucvlatin/nsUCvLatinModule.cpp @@ -996,3 +996,13 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("nsUCvLatinModule", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/intl/uconv/ucvtw/nsUCvTwModule.cpp b/intl/uconv/ucvtw/nsUCvTwModule.cpp index 7f2a14f5e84..fe1bd0f1116 100644 --- a/intl/uconv/ucvtw/nsUCvTwModule.cpp +++ b/intl/uconv/ucvtw/nsUCvTwModule.cpp @@ -121,3 +121,13 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("nsUCvTWModule", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/intl/uconv/ucvtw2/nsUCvTw2Module.cpp b/intl/uconv/ucvtw2/nsUCvTw2Module.cpp index dab5c0d1a24..8cf51e1164c 100644 --- a/intl/uconv/ucvtw2/nsUCvTw2Module.cpp +++ b/intl/uconv/ucvtw2/nsUCvTw2Module.cpp @@ -199,3 +199,13 @@ static nsModuleComponentInfo components[] = }; NS_IMPL_NSGETMODULE("nsUCvTW2Module", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/intl/unicharutil/src/nsUcharUtilModule.cpp b/intl/unicharutil/src/nsUcharUtilModule.cpp index ac21f30aba2..1d95737c59b 100644 --- a/intl/unicharutil/src/nsUcharUtilModule.cpp +++ b/intl/unicharutil/src/nsUcharUtilModule.cpp @@ -103,3 +103,13 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("UcharUtil", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/js/src/xpconnect/loader/mozJSComponentLoader.cpp b/js/src/xpconnect/loader/mozJSComponentLoader.cpp index 781b6ad9258..98943eb6ce6 100644 --- a/js/src/xpconnect/loader/mozJSComponentLoader.cpp +++ b/js/src/xpconnect/loader/mozJSComponentLoader.cpp @@ -1325,3 +1325,13 @@ static nsModuleComponentInfo components[] = { }; NS_IMPL_NSGETMODULE("JS component loader", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/js/src/xpconnect/shell/xpcshell.cpp b/js/src/xpconnect/shell/xpcshell.cpp index 36412e3116c..7509e0ece81 100644 --- a/js/src/xpconnect/shell/xpcshell.cpp +++ b/js/src/xpconnect/shell/xpcshell.cpp @@ -909,3 +909,13 @@ void Datom(JSAtom *atom) { if (atom) DumpAtom(&atom->entry, 0, gErrFile); } //void Dxpc(int depth) {Dobj(GetXPConnect(), depth);} JS_END_EXTERN_C #endif + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/js/src/xpconnect/src/xpcmodule.cpp b/js/src/xpconnect/src/xpcmodule.cpp index 55366395a07..428f9064c10 100644 --- a/js/src/xpconnect/src/xpcmodule.cpp +++ b/js/src/xpconnect/src/xpcmodule.cpp @@ -66,3 +66,13 @@ xpcModuleDtor(nsIModule* self) } NS_IMPL_NSGETMODULE_WITH_DTOR("xpconnect", components, xpcModuleDtor) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/layout/build/nsLayoutModule.cpp b/layout/build/nsLayoutModule.cpp index 8f5a3143cbb..b2d90962547 100644 --- a/layout/build/nsLayoutModule.cpp +++ b/layout/build/nsLayoutModule.cpp @@ -411,3 +411,13 @@ nsLayoutModule::CanUnload(nsIComponentManager *aCompMgr, PRBool *okToUnload) *okToUnload = PR_FALSE; return NS_ERROR_FAILURE; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/absync/build/nsAbSyncFactory.cpp b/mailnews/absync/build/nsAbSyncFactory.cpp index 39df656b115..d0c1fef062a 100644 --- a/mailnews/absync/build/nsAbSyncFactory.cpp +++ b/mailnews/absync/build/nsAbSyncFactory.cpp @@ -62,3 +62,13 @@ static nsModuleComponentInfo components[] = }; NS_IMPL_NSGETMODULE("nsAbSyncModule", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/addrbook/src/nsAddressBook.cpp b/mailnews/addrbook/src/nsAddressBook.cpp index 8fc62f83935..45ecf6de23b 100644 --- a/mailnews/addrbook/src/nsAddressBook.cpp +++ b/mailnews/addrbook/src/nsAddressBook.cpp @@ -1533,3 +1533,13 @@ NS_IMETHODIMP nsAddressBook::ImportAddressBook() } CMDLINEHANDLER_IMPL(nsAddressBook,"-addressbook","general.startup.addressbook","chrome://messenger/content/addressbook/addressbook.xul","Start with the addressbook.",NS_ADDRESSBOOKSTARTUPHANDLER_CONTRACTID,"Addressbook Startup Handler",PR_FALSE,"", PR_TRUE) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/base/src/nsMsgServiceProvider.cpp b/mailnews/base/src/nsMsgServiceProvider.cpp index d71cedb1565..370abd7284e 100644 --- a/mailnews/base/src/nsMsgServiceProvider.cpp +++ b/mailnews/base/src/nsMsgServiceProvider.cpp @@ -164,3 +164,14 @@ nsMsgServiceProviderService::LoadDataSource(const char *aURI) return rv; } + + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/base/util/nsMsgUtils.cpp b/mailnews/base/util/nsMsgUtils.cpp index 550b5719f27..3478baa00eb 100644 --- a/mailnews/base/util/nsMsgUtils.cpp +++ b/mailnews/base/util/nsMsgUtils.cpp @@ -390,3 +390,13 @@ PRBool NS_MsgStripRE(const char **stringP, PRUint32 *lengthP) return result; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/db/msgdb/build/nsMsgDBFactory.cpp b/mailnews/db/msgdb/build/nsMsgDBFactory.cpp index 473cccca74e..327b583a7db 100644 --- a/mailnews/db/msgdb/build/nsMsgDBFactory.cpp +++ b/mailnews/db/msgdb/build/nsMsgDBFactory.cpp @@ -277,3 +277,13 @@ extern "C" NS_EXPORT nsresult NSGetModule(nsIComponentManager *servMgr, gModule = module; // WARNING: Weak Reference return rv; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/imap/build/nsImapFactory.cpp b/mailnews/imap/build/nsImapFactory.cpp index ed9bda4593e..3f7b3beb825 100644 --- a/mailnews/imap/build/nsImapFactory.cpp +++ b/mailnews/imap/build/nsImapFactory.cpp @@ -80,3 +80,13 @@ static nsModuleComponentInfo gComponents[] = { }; NS_IMPL_NSGETMODULE("IMAP factory", gComponents); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/import/eudora/src/nsEudoraWin32.cpp b/mailnews/import/eudora/src/nsEudoraWin32.cpp index 2c7e8545f1d..b2a1ea5840f 100644 --- a/mailnews/import/eudora/src/nsEudoraWin32.cpp +++ b/mailnews/import/eudora/src/nsEudoraWin32.cpp @@ -1442,3 +1442,13 @@ void nsEudoraWin32::ConvertPath( nsCString& str) str = path; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/import/src/nsImportService.cpp b/mailnews/import/src/nsImportService.cpp index e7c8bc89795..618c435bc91 100644 --- a/mailnews/import/src/nsImportService.cpp +++ b/mailnews/import/src/nsImportService.cpp @@ -778,3 +778,14 @@ void nsImportModuleList::AddModule( const nsCID& cid, const char *pSupports, con IMPORT_LOG3( "* nsImportService registered import module: %s, %s, %s\n", (const char *)name, (const char *)desc, pSupports); #endif } + + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/import/text/src/nsTextFactory.cpp b/mailnews/import/text/src/nsTextFactory.cpp index 0799ceeb078..2c9a87a0eb7 100644 --- a/mailnews/import/text/src/nsTextFactory.cpp +++ b/mailnews/import/text/src/nsTextFactory.cpp @@ -82,3 +82,13 @@ textModuleDtor(nsIModule* self) NS_IMPL_NSGETMODULE_WITH_DTOR("nsTextImportModule", components, textModuleDtor) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/local/build/nsMsgLocalFactory.cpp b/mailnews/local/build/nsMsgLocalFactory.cpp index ff442725766..a25949e19e8 100644 --- a/mailnews/local/build/nsMsgLocalFactory.cpp +++ b/mailnews/local/build/nsMsgLocalFactory.cpp @@ -138,3 +138,13 @@ static nsModuleComponentInfo gComponents[] = { NS_IMPL_NSGETMODULE("local mail services", gComponents); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/mailnews/news/build/nsMsgNewsFactory.cpp b/mailnews/news/build/nsMsgNewsFactory.cpp index 2426799fc6a..8e3cda88067 100644 --- a/mailnews/news/build/nsMsgNewsFactory.cpp +++ b/mailnews/news/build/nsMsgNewsFactory.cpp @@ -128,3 +128,13 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("nsMsgNewsModule", components) +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + + diff --git a/modules/libimg/gifcom/nsGIFModule.cpp b/modules/libimg/gifcom/nsGIFModule.cpp index c56761864cd..d3101a2523a 100644 --- a/modules/libimg/gifcom/nsGIFModule.cpp +++ b/modules/libimg/gifcom/nsGIFModule.cpp @@ -38,3 +38,12 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("nsGIFModule", components) +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/modules/libimg/jpgcom/nsJPGModule.cpp b/modules/libimg/jpgcom/nsJPGModule.cpp index 2a2a8547443..624af9ad838 100644 --- a/modules/libimg/jpgcom/nsJPGModule.cpp +++ b/modules/libimg/jpgcom/nsJPGModule.cpp @@ -38,3 +38,13 @@ static nsModuleComponentInfo components[] = }; NS_IMPL_NSGETMODULE("nsJPGModule", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/modules/libimg/mngcom/nsMNGDecoder.cpp b/modules/libimg/mngcom/nsMNGDecoder.cpp index 995ddcad5c3..99ebb01dbd9 100644 --- a/modules/libimg/mngcom/nsMNGDecoder.cpp +++ b/modules/libimg/mngcom/nsMNGDecoder.cpp @@ -454,3 +454,13 @@ MNGDecoder::ImgDAbort() return NS_OK; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/modules/libimg/pngcom/nsPNGModule.cpp b/modules/libimg/pngcom/nsPNGModule.cpp index 1fcbf7ea3af..6fe442d3714 100644 --- a/modules/libimg/pngcom/nsPNGModule.cpp +++ b/modules/libimg/pngcom/nsPNGModule.cpp @@ -38,3 +38,13 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("nsPNGModule", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/modules/libimg/src/xpcompat.cpp b/modules/libimg/src/xpcompat.cpp index 07444320fc1..228c0e067c6 100644 --- a/modules/libimg/src/xpcompat.cpp +++ b/modules/libimg/src/xpcompat.cpp @@ -120,3 +120,12 @@ IL_ClearTimeout(void *timer_id) } +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/modules/libjar/nsJAR.cpp b/modules/libjar/nsJAR.cpp index 0bd8a7799f4..c71fdf97fd3 100644 --- a/modules/libjar/nsJAR.cpp +++ b/modules/libjar/nsJAR.cpp @@ -1375,3 +1375,13 @@ nsZipReaderCache::Observe(nsISupports *aSubject, } //////////////////////////////////////////////////////////////////////////////// + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/modules/libpref/src/nsPref.cpp b/modules/libpref/src/nsPref.cpp index cfb707c3e87..65164eaa783 100644 --- a/modules/libpref/src/nsPref.cpp +++ b/modules/libpref/src/nsPref.cpp @@ -1970,3 +1970,13 @@ extern "C" JSRuntime* PREF_GetJSRuntime() // and the entire implementation of the module object. // NS_IMPL_NSGETMODULE("nsPrefModule", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/modules/plugin/base/src/nsPluginModule.cpp b/modules/plugin/base/src/nsPluginModule.cpp index 1a9eff8e039..063261e5d19 100644 --- a/modules/plugin/base/src/nsPluginModule.cpp +++ b/modules/plugin/base/src/nsPluginModule.cpp @@ -53,3 +53,14 @@ nsPluginModuleDtor(nsIModule *self) NS_IMPL_NSGETMODULE_WITH_DTOR("nsPluginModule", gComponentInfo, nsPluginModuleDtor); + + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/modules/plugin/nglsrc/nsPluginModule.cpp b/modules/plugin/nglsrc/nsPluginModule.cpp index 1a9eff8e039..063261e5d19 100644 --- a/modules/plugin/nglsrc/nsPluginModule.cpp +++ b/modules/plugin/nglsrc/nsPluginModule.cpp @@ -53,3 +53,14 @@ nsPluginModuleDtor(nsIModule *self) NS_IMPL_NSGETMODULE_WITH_DTOR("nsPluginModule", gComponentInfo, nsPluginModuleDtor); + + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/netwerk/build/nsNetModule.cpp b/netwerk/build/nsNetModule.cpp index 5f9b0fbcf8a..a505ecb45b9 100644 --- a/netwerk/build/nsNetModule.cpp +++ b/netwerk/build/nsNetModule.cpp @@ -892,3 +892,14 @@ static nsModuleComponentInfo gNetModuleInfo[] = { NS_IMPL_NSGETMODULE_WITH_DTOR("necko core and primary protocols", gNetModuleInfo, nsNeckoShutdown) + + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/netwerk/build2/nsNetModule2.cpp b/netwerk/build2/nsNetModule2.cpp index 17e0cf49712..3785ad7d950 100644 --- a/netwerk/build2/nsNetModule2.cpp +++ b/netwerk/build2/nsNetModule2.cpp @@ -63,3 +63,13 @@ static nsModuleComponentInfo gNetModuleInfo[] = { }; NS_IMPL_NSGETMODULE("necko secondary protocols", gNetModuleInfo) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/profile/src/nsProfileFactory.cpp b/profile/src/nsProfileFactory.cpp index 4d7e8ab63de..b4e980406c0 100644 --- a/profile/src/nsProfileFactory.cpp +++ b/profile/src/nsProfileFactory.cpp @@ -36,3 +36,13 @@ static nsModuleComponentInfo components[] = }; NS_IMPL_NSGETMODULE("nsProfileModule", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/rdf/build/nsRDFModule.cpp b/rdf/build/nsRDFModule.cpp index 2b1f4a833e0..ce662e9e985 100644 --- a/rdf/build/nsRDFModule.cpp +++ b/rdf/build/nsRDFModule.cpp @@ -152,3 +152,13 @@ static nsModuleComponentInfo components[] = }; NS_IMPL_NSGETMODULE("nsRDFModule", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/rdf/chrome/build/nsChromeFactory.cpp b/rdf/chrome/build/nsChromeFactory.cpp index 4b25c4767af..43fc2e282a8 100644 --- a/rdf/chrome/build/nsChromeFactory.cpp +++ b/rdf/chrome/build/nsChromeFactory.cpp @@ -53,3 +53,13 @@ static nsModuleComponentInfo components[] = NS_IMPL_NSGETMODULE("nsChromeModule", components); + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/uriloader/build/nsURILoaderModule.cpp b/uriloader/build/nsURILoaderModule.cpp index 6d853d071eb..f9e70e4ac84 100644 --- a/uriloader/build/nsURILoaderModule.cpp +++ b/uriloader/build/nsURILoaderModule.cpp @@ -62,3 +62,13 @@ static nsModuleComponentInfo components[] = { // and the entire implementation of the module object. // NS_IMPL_NSGETMODULE("nsURILoaderModule", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/view/src/nsViewFactory.cpp b/view/src/nsViewFactory.cpp index fc4cca2b7e0..16b3561bc15 100644 --- a/view/src/nsViewFactory.cpp +++ b/view/src/nsViewFactory.cpp @@ -339,3 +339,13 @@ nsViewModule::CanUnload(nsIComponentManager *aCompMgr, PRBool *okToUnload) } ////////////////////////////////////////////////////////////////////// + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/widget/src/build/nsWinWidgetFactory.cpp b/widget/src/build/nsWinWidgetFactory.cpp index 5207a1ec2a6..7402667e39b 100644 --- a/widget/src/build/nsWinWidgetFactory.cpp +++ b/widget/src/build/nsWinWidgetFactory.cpp @@ -264,3 +264,13 @@ NSGetFactory(nsISupports* serviceMgr, + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/xpcom/base/nsConsoleService.cpp b/xpcom/base/nsConsoleService.cpp index 2dbae67ea8d..a944dbeaec0 100644 --- a/xpcom/base/nsConsoleService.cpp +++ b/xpcom/base/nsConsoleService.cpp @@ -305,3 +305,13 @@ nsConsoleService::GetProxyForListener(nsIConsoleListener* aListener, (void**) aProxy); return rv; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/xpfe/appshell/src/nsAppShellFactory.cpp b/xpfe/appshell/src/nsAppShellFactory.cpp index 16fb24adec0..53e14e59bf9 100644 --- a/xpfe/appshell/src/nsAppShellFactory.cpp +++ b/xpfe/appshell/src/nsAppShellFactory.cpp @@ -136,3 +136,13 @@ static nsModuleComponentInfo gAppShellModuleInfo[] = NS_IMPL_NSGETMODULE("appshell", gAppShellModuleInfo) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/xpfe/components/build/nsModule.cpp b/xpfe/components/build/nsModule.cpp index f49bc090689..2f30dcd5726 100644 --- a/xpfe/components/build/nsModule.cpp +++ b/xpfe/components/build/nsModule.cpp @@ -95,3 +95,13 @@ static nsModuleComponentInfo components[] = { }; NS_IMPL_NSGETMODULE("application", components) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/xpfe/components/find/src/nsFindComponent.cpp b/xpfe/components/find/src/nsFindComponent.cpp index fb6881598b4..b01b49efa1c 100644 --- a/xpfe/components/find/src/nsFindComponent.cpp +++ b/xpfe/components/find/src/nsFindComponent.cpp @@ -699,3 +699,13 @@ nsFindComponent::ResetContext( nsISupports *aContext, NS_IMPL_ISUPPORTS1( nsFindComponent::Context, nsISearchContext) NS_IMPL_IAPPSHELLCOMPONENT( nsFindComponent, nsIFindComponent, NS_IFINDCOMPONENT_CONTRACTID, 0 ) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/xpfe/components/shistory/src/nsSHistoryModule.cpp b/xpfe/components/shistory/src/nsSHistoryModule.cpp index 0a7ba6cda10..12198c6c300 100644 --- a/xpfe/components/shistory/src/nsSHistoryModule.cpp +++ b/xpfe/components/shistory/src/nsSHistoryModule.cpp @@ -57,3 +57,13 @@ static nsModuleComponentInfo gSHistoryModuleInfo[] = }; NS_IMPL_NSGETMODULE("Session History Module", gSHistoryModuleInfo) + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/xpinstall/src/nsXPInstallManager.cpp b/xpinstall/src/nsXPInstallManager.cpp index 065caf814eb..0bb86ee7d83 100644 --- a/xpinstall/src/nsXPInstallManager.cpp +++ b/xpinstall/src/nsXPInstallManager.cpp @@ -967,3 +967,13 @@ nsXPInstallManager::LogComment(const PRUnichar* comment) return NS_OK; } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif + diff --git a/xpinstall/wizard/windows/setuprsc/setuprsc.cpp b/xpinstall/wizard/windows/setuprsc/setuprsc.cpp index 9800efd9b9d..c4995882a77 100644 --- a/xpinstall/wizard/windows/setuprsc/setuprsc.cpp +++ b/xpinstall/wizard/windows/setuprsc/setuprsc.cpp @@ -27,3 +27,13 @@ int FAR PASCAL LibMain(HINSTANCE hInstance, WORD wDataSeg, WORD cbHeapSize, LPST { return(1); } + +#ifdef XP_WIN32 + //in addition to returning a version number for this module, + //this also provides a convenient hook for the preloader + //to keep (some if not all) of the module resident. +extern "C" __declspec(dllexport) float GetVersionNumber(void) { + return 1.0; +} +#endif +