Browse Source

* ifdef'ed textrec and filerec usage completely depending on the features set

git-svn-id: branches/avr@17022 -
florian 14 years ago
parent
commit
2e22090451
1 changed files with 7 additions and 0 deletions
  1. 7 0
      rtl/inc/system.inc

+ 7 - 0
rtl/inc/system.inc

@@ -59,8 +59,13 @@ Const
   This way we keep TP compatibility, and the TextRec definition is available
   This way we keep TP compatibility, and the TextRec definition is available
   for everyone who needs it.
   for everyone who needs it.
 }
 }
+{$ifdef FPC_HAS_FEATURE_FILEIO}
 {$i filerec.inc}
 {$i filerec.inc}
+{$endif FPC_HAS_FEATURE_FILEIO}
+
+{$ifdef FPC_HAS_FEATURE_TEXTIO}
 {$i textrec.inc}
 {$i textrec.inc}
+{$endif FPC_HAS_FEATURE_TEXTIO}
 
 
 {$ifdef FPC_HAS_FEATURE_EXITCODE}
 {$ifdef FPC_HAS_FEATURE_EXITCODE}
   {$ifdef FPC_OBJFPC_EXTENDED_IF}
   {$ifdef FPC_OBJFPC_EXTENDED_IF}
@@ -75,8 +80,10 @@ Const
 Procedure HandleError (Errno : Longint); forward;
 Procedure HandleError (Errno : Longint); forward;
 Procedure HandleErrorFrame (Errno : longint;frame : Pointer); forward;
 Procedure HandleErrorFrame (Errno : longint;frame : Pointer); forward;
 
 
+{$ifdef FPC_HAS_FEATURE_TEXTIO}
 type
 type
   FileFunc = Procedure(var t : TextRec);
   FileFunc = Procedure(var t : TextRec);
+{$endif FPC_HAS_FEATURE_TEXTIO}
 
 
 
 
 const
 const