Commit f6b58d2bdc0a24ce94dedce59802f091979df265

rofl0r 2012-11-22T16:26:21

fix build on ppc when long double == double

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/powerpc/ffi.c b/src/powerpc/ffi.c
index baca694..257f02f 100644
--- a/src/powerpc/ffi.c
+++ b/src/powerpc/ffi.c
@@ -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.  */