Jelajahi Sumber

* there is no CPUX86 define that is set for all three X86 variants (i8086, i386, x86_64), so check for each separately

git-svn-id: trunk@41836 -
svenbarth 6 tahun lalu
induk
melakukan
36255a700d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      packages/libffi/src/ffi.pp

+ 1 - 1
packages/libffi/src/ffi.pp

@@ -269,7 +269,7 @@ const
 const
   ffilibrary = 'ffi';
 
-{$if defined(CPUX86) and not defined(WIN64)}
+{$if defined(CPUI8086) or defined(CPUI386) or (defined(CPUX86_64) and not defined(WIN64))}
   { Note: we can not use FPC_HAS_TYPE_EXTENDED here as libffi won't have the
           corresponding type no matter what }
   {$define HAVE_LONG_DOUBLE}