bug 503137 - xpcshell.exe needs an --environ cli option to work with xpcshell unittests on windows mobile r+sr=mrbkap

This commit is contained in:
Brad Lassey 2009-08-28 10:16:30 -04:00
parent 67ebdb3765
commit 14569d27f4
2 changed files with 12 additions and 1 deletions

View File

@ -64,7 +64,8 @@ NSDISTMODE = copy
ifdef _MSC_VER
ifdef WINCE
WIN32_EXE_LDFLAGS += -ENTRY:mainACRTStartup
WIN32_EXE_LDFLAGS += -ENTRY:mainWCRTStartup
LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre/
endif
endif

View File

@ -1565,9 +1565,19 @@ GetCurrentWorkingDirectory(nsAString& workingDirectory)
return true;
}
#ifdef WINCE
#include "nsWindowsWMain.cpp"
#endif
int
#ifndef WINCE
main(int argc, char **argv, char **envp)
{
#else
main(int argc, char **argv)
{
char **envp = 0;
#endif
#ifdef XP_MACOSX
InitAutoreleasePool();
#endif