mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 10:20:21 +02:00
* (again :-( ) make cdecl the default calling convention for everything except Windows and fix compilation under OS/2
git-svn-id: trunk@15137 -
This commit is contained in:
parent
cbf7b49dd1
commit
f27bb1efd3
@ -26,6 +26,9 @@ uses
|
||||
{$ENDIF FPC_TARGET_SUPPORTS_DYNLIBS}
|
||||
ctypes;
|
||||
|
||||
(* cdecl as default unless defined differently below *)
|
||||
{$DEFINE EXTDECL := cdecl}
|
||||
|
||||
{$IFDEF UNIX}
|
||||
{$DEFINE EXTDECL := cdecl}
|
||||
const
|
||||
@ -46,6 +49,13 @@ uses
|
||||
{$linklib c}
|
||||
{$UNDEF LOAD_DYNAMICALLY}
|
||||
{$ENDIF GO32V2}
|
||||
{$IFDEF OS2}
|
||||
(* Force static linking under OS/2 for now to avoid *)
|
||||
(* dependency on dll for a one particular libc version. *)
|
||||
{$UNDEF LOAD_DYNAMICALLY}
|
||||
{$DEFINE gdlib := }
|
||||
{$DEFINE clib := }
|
||||
{$ENDIF OS2}
|
||||
|
||||
{$IFNDEF LOAD_DYNAMICALLY}
|
||||
{$IFDEF darwin}
|
||||
|
Loading…
Reference in New Issue
Block a user