diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-02-21 11:09:26 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-02-21 11:09:26 +0000 |
commit | 56933187043872fc67b17014954ce38a176a94ba (patch) | |
tree | 1764cb0235bb1bbcc7283c837ba208e9b1544045 /Game | |
parent | cfbf0943be5d95b5b2aeccfa4149bc943fc1bc3c (diff) | |
download | usdx-56933187043872fc67b17014954ce38a176a94ba.tar.gz usdx-56933187043872fc67b17014954ce38a176a94ba.tar.xz usdx-56933187043872fc67b17014954ce38a176a94ba.zip |
compatibility for fpc < 2.2.0 (at least 2.0.4)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@877 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/lib/ffmpeg/avio.pas | 1 | ||||
-rw-r--r-- | Game/Code/lib/ffmpeg/avutil.pas | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Game/Code/lib/ffmpeg/avio.pas b/Game/Code/lib/ffmpeg/avio.pas index a4d7af12..f3a4f05f 100644 --- a/Game/Code/lib/ffmpeg/avio.pas +++ b/Game/Code/lib/ffmpeg/avio.pas @@ -40,6 +40,7 @@ unit avio; interface uses + avutil, // for uint64 UConfig; (* output byte stream handling *) diff --git a/Game/Code/lib/ffmpeg/avutil.pas b/Game/Code/lib/ffmpeg/avutil.pas index 906d9041..c27dd735 100644 --- a/Game/Code/lib/ffmpeg/avutil.pas +++ b/Game/Code/lib/ffmpeg/avutil.pas @@ -61,6 +61,13 @@ const {$MESSAGE Warn 'Linked version of libavutil may be unsupported!'} {$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} +{$ENDIF} + type (** * Pixel format. Notes: |