Browse Source

- disabled assembler ansistring helpers for darwin/x86 because they don't
keep 16 byte stack alignment

git-svn-id: trunk@2852 -

Jonas Maebe 19 years ago
parent
commit
15270b67be
1 changed files with 4 additions and 0 deletions
  1. 4 0
      rtl/i386/i386.inc

+ 4 - 0
rtl/i386/i386.inc

@@ -1059,6 +1059,9 @@ asm
 end;
 
 
+{$ifndef darwin}
+{ darwin requires that the stack is aligned to 16 bytes when calling another function }
+
 {$define FPC_SYSTEM_HAS_ANSISTR_DECR_REF}
 function fpc_freemem_x(p:pointer):ptrint; [external name 'FPC_FREEMEM_X'];
 
@@ -1132,3 +1135,4 @@ asm
 // [442] end;
 end;
 
+{$endif darwin}