mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 19:09:16 +02:00
* on targets with indirect main entry argc, argv and envp are provided through the indirect entry information instead of externals
git-svn-id: trunk@36686 -
This commit is contained in:
parent
00e9289f58
commit
d5c8fe7455
@ -57,9 +57,15 @@ const
|
|||||||
DefaultTextLineBreakStyle : TTextLineBreakStyle = tlbsLF;
|
DefaultTextLineBreakStyle : TTextLineBreakStyle = tlbsLF;
|
||||||
|
|
||||||
{$if not defined(solaris) and not defined(darwin) and not defined(aix)}
|
{$if not defined(solaris) and not defined(darwin) and not defined(aix)}
|
||||||
|
{$ifdef FPC_HAS_INDIRECT_ENTRY_INFORMATION}
|
||||||
|
var argc:longint;
|
||||||
|
argv:PPchar;
|
||||||
|
envp:PPchar;
|
||||||
|
{$else FPC_HAS_INDIRECT_ENTRY_INFORMATION}
|
||||||
var argc:longint;external name 'operatingsystem_parameter_argc';
|
var argc:longint;external name 'operatingsystem_parameter_argc';
|
||||||
argv:PPchar;external name 'operatingsystem_parameter_argv';
|
argv:PPchar;external name 'operatingsystem_parameter_argv';
|
||||||
envp:PPchar;external name 'operatingsystem_parameter_envp';
|
envp:PPchar;external name 'operatingsystem_parameter_envp';
|
||||||
|
{$endif FPC_HAS_INDIRECT_ENTRY_INFORMATION}
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
{$ifdef unix}
|
{$ifdef unix}
|
||||||
|
Loading…
Reference in New Issue
Block a user