hedgewars/uVideoRec.pas
changeset 7538 2d6e69b392cb
parent 7392 bc3306c59a08
child 7540 cc6c656f70b5
--- a/hedgewars/uVideoRec.pas	Fri Aug 10 17:25:22 2012 +0400
+++ b/hedgewars/uVideoRec.pas	Fri Aug 10 17:35:48 2012 +0400
@@ -27,7 +27,7 @@
 end.
 {$ELSE}
 
-{$IFDEF UNIX}
+{$IFNDEF WIN32}
     {$LINKLIB avwrapper}
     {$LINKLIB avutil}
     {$LINKLIB avcodec}
@@ -53,27 +53,16 @@
 
 uses uVariables, uUtils, GLunit, SDLh, SysUtils, uIO, uMisc, uTypes;
 
-{$IFDEF WIN32}
-const AVWrapperLibName = 'libavwrapper.dll';
-{$ENDIF}
+const AVWrapperLibName = {$IFDEF WIN32}'libavwrapper.dll'{$ELSE}''{$ENDIF};
 
 type TAddFileLogRaw = procedure (s: pchar); cdecl;
 
-{$IFDEF WIN32}
 procedure AVWrapper_Init(
               AddLog: TAddFileLogRaw;
               filename, desc, soundFile, format, vcodec, acodec: PChar;
               width, height, framerateNum, framerateDen, vquality: LongInt); cdecl; external AVWrapperLibName;
 procedure AVWrapper_Close; cdecl; external AVWrapperLibName;
 procedure AVWrapper_WriteFrame( pY, pCb, pCr: PByte ); cdecl; external AVWrapperLibName;
-{$ELSE}
-procedure AVWrapper_Init(
-              AddLog: TAddFileLogRaw;
-              filename, desc, soundFile, format, vcodec, acodec: PChar;
-              width, height, framerateNum, framerateDen, vquality: LongInt); cdecl; external;
-procedure AVWrapper_Close; cdecl; external;
-procedure AVWrapper_WriteFrame( pY, pCb, pCr: PByte ); cdecl; external;
-{$ENDIF}
 
 type TFrame = record
                   realTicks: LongWord;