[fpc-devel] Compiler directives in getopts unit

Michael Van Canneyt michael at freepascal.org
Fri Jan 18 11:13:10 CET 2019

On Fri, 18 Jan 2019, Sven Barth via fpc-devel wrote:

> Am 18.01.2019 um 00:06 schrieb Michael Van Canneyt:
>>> As for the {$IF not Declared(Argv)} part: does that apply to a target
>>> that FPC supports or is also there just to be able to compile it with
>>> Delphi?
>>> If we keep it, then at least the comments should be updated.
>> You can make the unit FPC only if you wish.
> I just checked the logs: the unit had been explicitely made Delphi 
> compatible by adding the check for argv. So maybe we shouldn't just 
> throw that one out of the window... (TP compatibility is a different topic)

If support for delphi can be reduced to an IFDEF FPC with the ELSE for Delphi (or vice versa)
in one or 2 places I'm inclined to agree... 
But if it needs much more than that I am not really in favour...


More information about the fpc-devel mailing list