aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-05-19 17:00:18 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-05-19 17:00:18 +0000
commitd4bb21ab3781a9eca0790afa100f0c1edf32f31d (patch)
tree3087a97d21150cae6b60d4a6f6ceafe47e232af1 /Game/Code/lib
parentfac0447cc006284cd9346505fb222eb1ee3728ed (diff)
downloadusdx-d4bb21ab3781a9eca0790afa100f0c1edf32f31d.tar.gz
usdx-d4bb21ab3781a9eca0790afa100f0c1edf32f31d.tar.xz
usdx-d4bb21ab3781a9eca0790afa100f0c1edf32f31d.zip
- changed "Windows" define to "MSWINDOWS"
- moved a few linklib for darwin to the libname section - added bass-define (undefined by default) for darwin back to switches.inc so switching to bass is easier git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1111 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/lib')
-rw-r--r--Game/Code/lib/bass/delphi/bass.pas5
-rw-r--r--Game/Code/lib/ffmpeg/avformat.pas2
-rw-r--r--Game/Code/lib/libpng/png.pas27
-rw-r--r--Game/Code/lib/zlib/zlib.pas7
4 files changed, 19 insertions, 22 deletions
diff --git a/Game/Code/lib/bass/delphi/bass.pas b/Game/Code/lib/bass/delphi/bass.pas
index cd348c22..c4588df8 100644
--- a/Game/Code/lib/bass/delphi/bass.pas
+++ b/Game/Code/lib/bass/delphi/bass.pas
@@ -11,10 +11,6 @@
unit Bass;
-{$IFDEF DARWIN}
- {$linklib libbass}
-{$ENDIF}
-
interface
{$IFDEF FPC}
@@ -666,6 +662,7 @@ const
{$ENDIF}
{$IFDEF DARWIN}
bassdll = 'libbass.dylib';
+ {$linklib libbass}
{$ENDIF}
function BASS_SetConfig(option, value: DWORD): BOOL; {$IFDEF DLL_STDCALL}stdcall;{$ENDIF}{$IFDEF DLL_CDECL}cdecl;{$ENDIF} external bassdll;
diff --git a/Game/Code/lib/ffmpeg/avformat.pas b/Game/Code/lib/ffmpeg/avformat.pas
index 9115d6ae..720103d6 100644
--- a/Game/Code/lib/ffmpeg/avformat.pas
+++ b/Game/Code/lib/ffmpeg/avformat.pas
@@ -37,6 +37,8 @@ unit avformat;
{$MINENUMSIZE 4} (* use 4-byte enums *)
{$ENDIF}
+{$I switches.inc} (* for the HasInline define *)
+
{$IFDEF DARWIN}
{$linklib libavformat}
{$ENDIF}
diff --git a/Game/Code/lib/libpng/png.pas b/Game/Code/lib/libpng/png.pas
index 9787c913..d997451f 100644
--- a/Game/Code/lib/libpng/png.pas
+++ b/Game/Code/lib/libpng/png.pas
@@ -9,10 +9,6 @@
{$endif}
{$ENDIF}
-{$IFDEF DARWIN}
- {$linklib libpng}
-{$ENDIF}
-
unit png;
interface
@@ -32,7 +28,7 @@ uses
zlib;
const
-{$ifdef MSWINDOWS}
+{$IFDEF MSWINDOWS}
// use libpng12-0 (Version 1.2.18), delivered wih SDL_Image
LibPng = 'libpng12-0'; // 'libpng13';
// matching lib version for libpng13.dll, needed for initialization
@@ -40,26 +36,29 @@ const
// define the compiler that was used to built the DLL (necessary for jmp_buf)
// SDL_Image was compiled with GCC
//{$define MSVC_DLL} // MS Visual C++
- {$define GCC_DLL} // GCC
-{$else}
+ {$DEFINE GCC_DLL} // GCC
+{$ELSE}
LibPng = 'png';
// matching lib version for libpng, needed for initialization
PNG_LIBPNG_VER_STRING='1.2.12';
-{$endif}
+ {$IFDEF DARWIN}
+ {$linklib libpng}
+ {$ENDIF}
+{$ENDIF}
-{$ifdef MSWINDOWS}
+{$IFDEF MSWINDOWS}
const
// JB_LEN (#elements in jmp_buf) depends on the compiler used to compile the DLL
// MSVC++: 16 (x86/AMD64), GCC: 52
- {$if Defined(MSVC_DLL)}
+ {$IF Defined(MSVC_DLL)}
JB_LEN = 16;
- {$elseif Defined(GCC_DLL)}
+ {$ELSEIF Defined(GCC_DLL)}
JB_LEN = 52;
- {$else}
+ {$ELSE}
JB_LEN = 0;
- {$ifend}
-{$endif}
+ {$IFEND}
+{$ENDIF}
type
{$IFNDEF FPC}
diff --git a/Game/Code/lib/zlib/zlib.pas b/Game/Code/lib/zlib/zlib.pas
index 91eb47df..c1e21a4c 100644
--- a/Game/Code/lib/zlib/zlib.pas
+++ b/Game/Code/lib/zlib/zlib.pas
@@ -25,12 +25,11 @@ const
libz = 'zlib1';
{$else}
libz = 'z';
+ {$IFDEF DARWIN}
+ {$linklib libz}
+ {$ENDIF}
{$endif}
-{$IFDEF DARWIN}
- {$linklib libz}
-{$ENDIF}
-
type
{ Compatible with paszlib }
Uint = Cardinal;