Fix bug 170621
Static build changes to support viewer, mfcembed, winembed r=cls git-svn-id: svn://10.0.0.236/trunk@135600 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -68,6 +68,14 @@
|
||||
|
||||
#define MAX_LOADSTRING 100
|
||||
|
||||
|
||||
#ifdef _BUILD_STATIC_BIN
|
||||
#include "nsStaticComponent.h"
|
||||
nsresult PR_CALLBACK
|
||||
app_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count);
|
||||
#endif
|
||||
|
||||
|
||||
const TCHAR *szWindowClass = _T("WINEMBED");
|
||||
|
||||
// Foward declarations of functions included in this code module:
|
||||
@@ -167,6 +175,11 @@ int main(int argc, char *argv[])
|
||||
LoadString(ghInstanceResources, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
|
||||
MyRegisterClass(ghInstanceApp);
|
||||
|
||||
#ifdef _BUILD_STATIC_BIN
|
||||
// Initialize XPCOM's module info table
|
||||
NSGetStaticModuleInfo = app_getModuleInfo;
|
||||
#endif
|
||||
|
||||
// Init Embedding APIs
|
||||
NS_InitEmbedding(nsnull, nsnull);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user