diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-05-19 17:00:18 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-05-19 17:00:18 +0000 |
commit | d4bb21ab3781a9eca0790afa100f0c1edf32f31d (patch) | |
tree | 3087a97d21150cae6b60d4a6f6ceafe47e232af1 /Game/Code/lib/libpng | |
parent | fac0447cc006284cd9346505fb222eb1ee3728ed (diff) | |
download | usdx-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 '')
-rw-r--r-- | Game/Code/lib/libpng/png.pas | 27 |
1 files changed, 13 insertions, 14 deletions
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} |