diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-06-16 15:00:46 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-06-16 15:00:46 +0000 |
commit | 4401ddfaa20d87492442cb7656c37d13b75995d7 (patch) | |
tree | 9caf2c1a46daf42f4ad8c5e7e2d3e59369ea3c73 /Game/Code/lib/ffmpeg | |
parent | f01995d31ad202ccbbe8f79213303e479923cd81 (diff) | |
download | usdx-4401ddfaa20d87492442cb7656c37d13b75995d7.tar.gz usdx-4401ddfaa20d87492442cb7656c37d13b75995d7.tar.xz usdx-4401ddfaa20d87492442cb7656c37d13b75995d7.zip |
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
Diffstat (limited to 'Game/Code/lib/ffmpeg')
-rw-r--r-- | Game/Code/lib/ffmpeg/avutil.pas | 8 |
1 files changed, 4 insertions, 4 deletions
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 |