Browse Source

* 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 years ago
parent
commit
36255a700d
1 changed files with 1 additions and 1 deletions
  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}