From 4401ddfaa20d87492442cb7656c37d13b75995d7 Mon Sep 17 00:00:00 2001 From: tobigun Date: Mon, 16 Jun 2008 15:00:46 +0000 Subject: Delphi 7 compatibility fix: - "in"-operator does not work with WideChar operands, e.g. "mychar in ['a..z'] - FPC_VERSION/RELEASE/PATCH (e.g. {$IF FPC_VERSION > 2}) must be defined as constants because delphi 7 does not care about {$IFDEF FPC} sections and complains about undefined constant expressions. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1150 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/lib/ffmpeg/avutil.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Game/Code/lib') diff --git a/Game/Code/lib/ffmpeg/avutil.pas b/Game/Code/lib/ffmpeg/avutil.pas index 3bd565c7..c4b6f633 100644 --- a/Game/Code/lib/ffmpeg/avutil.pas +++ b/Game/Code/lib/ffmpeg/avutil.pas @@ -71,10 +71,10 @@ const {$IFEND} {$IFDEF FPC} - // check for version of FPC < 2.2.0 - {$IF (FPC_VERSION < 2) or ((FPC_VERSION = 2) and (FPC_RELEASE < 2))} - type uint64 = QWord; - {$IFEND} +{$IF FPC_VERSION_INT < 2002000} // < 2.2.0 +type + uint64 = QWord; +{$IFEND} {$ENDIF} type -- cgit v1.2.3