mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
parent
470a6e4401
commit
13fcc4a046
949 changed files with 95662 additions and 444 deletions
|
|
@ -10,6 +10,9 @@
|
|||
#include "mozilla/WindowsDllBlocklist.h"
|
||||
|
||||
#include "nsXULAppAPI.h"
|
||||
#ifdef XP_MACOSX
|
||||
#include "xpcshellMacUtils.h"
|
||||
#endif
|
||||
#ifdef XP_WIN
|
||||
#include <windows.h>
|
||||
#include <shlobj.h>
|
||||
|
|
@ -34,6 +37,10 @@ main(int argc, char** argv, char** envp)
|
|||
gtk_parse_args(&argc, &argv);
|
||||
#endif
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
InitAutoreleasePool();
|
||||
#endif
|
||||
|
||||
// unbuffer stdout so that output is in the correct order; note that stderr
|
||||
// is unbuffered by default
|
||||
setbuf(stdout, 0);
|
||||
|
|
@ -44,5 +51,9 @@ main(int argc, char** argv, char** envp)
|
|||
|
||||
int result = XRE_XPCShellMain(argc, argv, envp);
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
FinishAutoreleasePool();
|
||||
#endif
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue