From 9aa48684216b0dca926fa7e68a1b843dc1a872ce Mon Sep 17 00:00:00 2001 From: tobigun Date: Thu, 8 May 2008 17:57:26 +0000 Subject: - added the {$H+} switch for FPC (was introduced for the MacOSX before). This will use AnsiString (no length restriction and passed as pointer) instead of ShortString (= array[0..255] of Char). This is the standard in Delphi so we should use it in FPC too. The FPC reference doc states that {$H-} is standard in FPC, but for any reason in my FPC 2.2.0 for win {$H+} is standard. Maybe the reference guide is somewhat outdated, so probably nothing changed because H+ was the default already. - removed DLL_CDECL from switches.inc and put it directly into the headers (used in bass and freeimage). Libs shouldn't be declared STDCALL or CDECL globally because it depends on how the libs are compiled. For windows, STDCALL and CDECL are possible, so please define this on a per library base. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1069 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/lib/bass/MacOSX/Bass.pas | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Game/Code/lib/bass') diff --git a/Game/Code/lib/bass/MacOSX/Bass.pas b/Game/Code/lib/bass/MacOSX/Bass.pas index d065f027..284004d3 100755 --- a/Game/Code/lib/bass/MacOSX/Bass.pas +++ b/Game/Code/lib/bass/MacOSX/Bass.pas @@ -13,6 +13,10 @@ unit Bass; {$I switches.inc} +{$IFDEF DARWIN} + {$DEFINE DLL_CDECL} +{$ENDIF} + interface uses -- cgit v1.2.3