소스 검색

* libffi: fix abi declarations for x86_64

Sven/Sarah Barth 3 년 전
부모
커밋
b54068d1a4
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      packages/libffi/src/ffi.pp

+ 8 - 0
packages/libffi/src/ffi.pp

@@ -83,7 +83,11 @@ type
 {$endif}
 
   ffi_abi = (
+{$if defined(CPUX86_64) and not defined(WIN64)}
+    FFI_FIRST_ABI = 1,
+{$else}
     FFI_FIRST_ABI,
+{$endif}
 {$if not defined(CPUMIPS) and not defined(CPUX86_64) and not defined(CPUPOWERPC) and not defined(CPUSPARCGEN)}
     FFI_SYSV,
 {$endif}
@@ -103,6 +107,7 @@ type
     FFI_UNIX64,
   {$endif}
     FFI_WIN64,
+    FFI_GNUW64,
 {$endif}
 {$if defined(CPUI386)}
   {$ifdef WIN32}
@@ -117,6 +122,9 @@ type
   {$endif}
     FFI_PASCAL,
     FFI_REGISTER,
+  {$ifndef WIN32}
+    FFI_MS_CDECL,
+  {$endif}
 {$endif}
 {$if defined(CPUSPARC32)}
     FFI_V8,