From e2488d880e54b1b938409d3870c28ea952c6d51a Mon Sep 17 00:00:00 2001 From: beware Date: Sat, 25 Sep 2021 16:58:24 +0000 Subject: [PATCH] FPC_FULLVERSION >= 30200 breaks delphi 6 even inside an ifdef it shouldnt process git-svn-id: file:///svnroot/lcore/trunk@160 b1de8a11-f9be-4011-bde0-cc7ace90066a --- unixstuff.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/unixstuff.inc b/unixstuff.inc index 29d12a9..1a9a97b 100644 --- a/unixstuff.inc +++ b/unixstuff.inc @@ -43,7 +43,14 @@ {$ifndef ver1_9_2} {$define flock := fpflock} {$ifndef ver1_9_4} - {$if FPC_FULLVERSION >= 30200} + //beware: this is needed because FPC_FULLVERSION >= 30200 breaks delphi 6 even inside an ifdef it shouldn't process + {$ifdef fpc} + {$ifdef ver3} + {$ifndef ver3_0}{$ifndef ver3_1}{$define fpc_3_2_or_later}{$endif}{$endif} + {$endif} + {$ifdef ver4}{$define fpc_3_2_or_later}{$endif} + {$endif} + {$ifdef fpc_3_2_or_later} procedure Execl(Todo:rawbytestring);inline; {$else} procedure Execl(Todo:string);inline; -- 2.30.2