зеркало из https://github.com/mozilla/gecko-dev.git
r=mkaply, sr=blizzard Code from aaronr - enable __argc and __argv globals for OS/2 - need for DDE
This commit is contained in:
Родитель
9404691bf8
Коммит
94b3f5d377
|
@ -125,6 +125,12 @@ apprunner_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count);
|
|||
extern void InstallUnixSignalHandlers(const char *ProgramName);
|
||||
#endif
|
||||
|
||||
#if defined(XP_OS2)
|
||||
/* Adding globals that OS/2 doesn't have so we can port the DDE code */
|
||||
char **__argv;
|
||||
int __argc;
|
||||
#endif /* XP_OS2 */
|
||||
|
||||
#if defined(XP_BEOS)
|
||||
|
||||
#include <AppKit.h>
|
||||
|
@ -1518,6 +1524,11 @@ int main(int argc, char* argv[])
|
|||
InstallUnixSignalHandlers(argv[0]);
|
||||
#endif
|
||||
|
||||
#if defined(XP_OS2)
|
||||
__argc = argc;
|
||||
__argv = argv;
|
||||
#endif /* XP_OS2 */
|
||||
|
||||
#if defined(XP_BEOS)
|
||||
if (NS_OK != InitializeBeOSApp())
|
||||
return 1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче