summaryrefslogtreecommitdiff
path: root/rtl/qnx
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2011-09-27 20:22:40 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2011-09-27 20:22:40 +0000
commit8b5b89db30881fce287cda10fc220fc91e4986df (patch)
treea186ac6f47512a8481b5f6f2bdcc08653eb44edd /rtl/qnx
parent707ed84c1a5daaf21b6dc091aed6cbcc7a5fc5bf (diff)
downloadfpc-8b5b89db30881fce287cda10fc220fc91e4986df.tar.gz
* patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19256 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/qnx')
-rw-r--r--rtl/qnx/dos.inc9
1 files changed, 2 insertions, 7 deletions
diff --git a/rtl/qnx/dos.inc b/rtl/qnx/dos.inc
index f37239e898..e322d414c4 100644
--- a/rtl/qnx/dos.inc
+++ b/rtl/qnx/dos.inc
@@ -132,18 +132,13 @@ begin
exit;
end;
{ otherwise try to open the TIMEZONE file }
-{$IFOPT I+}
-{$DEFINE IOCHECK_ON}
-{$ENDIF}
+{$push}
{$I-}
Assign(T, '/etc/TIMEZONE');
Reset(T);
If IOResult <> 0 then
exit;
-{$IFDEF IOCHECK_ON}
-{$I+}
-{$ENDIF}
-{$UNDEF IOCHECK_ON}
+{$pop}
ReadLn(T,s);
Close(T);
GetTimeZoneString:=s;