* Use cdecl instead of stdcall on non-Windows

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1346 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
Loesje_
2010-10-13 19:00:37 +00:00
parent 1f22a672ad
commit 2ce72c0953
26 changed files with 5092 additions and 4980 deletions

View File

@@ -1,5 +1,13 @@
unit nsThreadUtils;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
interface
uses
@@ -91,7 +99,7 @@ type
nsIThreadEventFilter = interface(nsISupports)
['{a0605c0b-17f5-4681-b8cd-a1cd75d42559}']
function acceptEvent(aEvent: nsIRunnable): PRBool; stdcall;
function acceptEvent(aEvent: nsIRunnable): PRBool; extdecl;
end;
nsIThreadManager = interface(nsISupports)