From 56933187043872fc67b17014954ce38a176a94ba Mon Sep 17 00:00:00 2001 From: tobigun Date: Thu, 21 Feb 2008 11:09:26 +0000 Subject: 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 --- Game/Code/lib/ffmpeg/avio.pas | 1 + Game/Code/lib/ffmpeg/avutil.pas | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'Game/Code/lib') 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: -- cgit v1.2.3