浏览代码

* 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 年之前
父节点
当前提交
36255a700d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/libffi/src/ffi.pp

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

@@ -269,7 +269,7 @@ const
 const
 const
   ffilibrary = 'ffi';
   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
   { Note: we can not use FPC_HAS_TYPE_EXTENDED here as libffi won't have the
           corresponding type no matter what }
           corresponding type no matter what }
   {$define HAVE_LONG_DOUBLE}
   {$define HAVE_LONG_DOUBLE}