fix build on ppc when long double == double
authorrofl0r <retnyg@gmx.net>
Thu, 22 Nov 2012 15:26:21 +0000 (16:26 +0100)
committerrofl0r <retnyg@gmx.net>
Thu, 22 Nov 2012 15:26:21 +0000 (16:26 +0100)
src/powerpc/ffi.c

index baca69448feb70b7d731e17da1d1f3aaf29daa3a..257f02fab3eeec55128864ed2182be3a3c5306cf 100644 (file)
@@ -664,9 +664,11 @@ ffi_prep_cif_machdep (ffi_cif *cif)
   switch (type)
     {
 #ifndef __NO_FPRS__
+#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
     case FFI_TYPE_LONGDOUBLE:
       flags |= FLAG_RETURNS_128BITS;
       /* Fall through.  */
+#endif
     case FFI_TYPE_DOUBLE:
       flags |= FLAG_RETURNS_64BITS;
       /* Fall through.  */