summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-02-22 23:35:26 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2010-02-22 23:35:26 +0200
commitd0f3cccb382580e1e0a1e0e32e1c5f548ad9e1ef (patch)
tree527a37a2cf7ebb75b2dba1ea1f03f1c1275ca01d
parentfd822dd120bd3eec1c54f2dbb00d24c1a92f732b (diff)
downloadfpGUI-d0f3cccb382580e1e0a1e0e32e1c5f548ad9e1ef.tar.xz
Removed IFDEF's in fpg_utils by using AllFilesMask.
AllFilesMask was introduced into the RTL in FPC 2.2.2. Seeing than fpGUI always only supports the latest released FPC (in this case 2.4.0), we can get rid of the IFDEF.
-rw-r--r--src/corelib/fpg_utils.pas10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/corelib/fpg_utils.pas b/src/corelib/fpg_utils.pas
index ec22b478..1f7ed26b 100644
--- a/src/corelib/fpg_utils.pas
+++ b/src/corelib/fpg_utils.pas
@@ -1,7 +1,7 @@
{
fpGUI - Free Pascal GUI Library
- Copyright (C) 2006 - 2009 See the file AUTHORS.txt, included in this
+ Copyright (C) 2006 - 2010 See the file AUTHORS.txt, included in this
distribution, for details of the copyright.
See the file COPYING.modifiedLGPL, included in this distribution,
@@ -186,12 +186,8 @@ end;
function fpgAllFilesMask: TfpgString;
begin
- {$Note In FPC 2.2.2 onwards we can use AllFilesMask which is part of RTL }
- {$IFDEF WINDOWS}
- Result := '*.*';
- {$ELSE}
- Result := '*';
- {$ENDIF}
+ { Since FPC 2.2.2 we have the AllFilesMask variable, which is part of the RTL }
+ Result := AllFilesMask;
end;
function fpgConvertLineEndings(const s: TfpgString): TfpgString;