Anybody know in AllFilesMask will be defined in FPC 2.2.2 as well, or only 2.3.x?
I need to know how to wrap my existing constant definitions for future FPC releases... For example, this is what I currently have, which means 2.0.4 and 2.2.0 needs to use the local defines and any later versions will use the one from RTL.
const
// FPC 2.2.0 and earlier only
{$if defined(VER2_0) or defined(VER2_2_0)}
{$IFDEF UNIX}
AllFilesMask = '*';
{$ELSE}
AllFilesMask = '*.*';
{$ENDIF UNIX}
{$endif}
Regards,
- Graeme -
Graeme Geldenhuys wrote 33 lines
On 25/03/2008, Mattias Gaertner wrote:
> On Tue, 25 Mar 2008 10:30:28 +0200
> "Graeme Geldenhuys" wrote:
>
> > Hi,
> >
> > Could FPC add a new 'all files' constant (eg: AllFilesMask) to the
> > RTL. Same as what we have PathDelimiter etc..
>
>
> Please do a find declaration. AllFilesMask is in the system unit.
I just did, using Lazarus's 'Find in files' and found nothing in FPC
2.2.0 source directory. I'll do another search.
Lazarus also didn't code navigate (Ctrl+Click) after I typed
AllFilesMask in my source code.
...searching....
Ah, it's not defined in FPC 2.2.0, but is in FPC 2.3.1. I better wrap
my defines with a FPC version then. Thanks Mattias.
Regards,
- Graeme -