Selaa lähdekoodia

Fixup function prototype for __uint128_t which fixes the compile
on powerpc with gcc 3.2.
-Erik

Eric Andersen 21 vuotta sitten
vanhempi
commit
4f0b121a93
1 muutettua tiedostoa jossa 3 lisäystä ja 5 poistoa
  1. 3 5
      libc/sysdeps/linux/powerpc/sys/procfs.h

+ 3 - 5
libc/sysdeps/linux/powerpc/sys/procfs.h

@@ -42,12 +42,10 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 typedef double elf_fpreg_t;
 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
 
-/* gcc doesn't support __TI__ yet */
-#if 0
-typedef unsigned __uint128_t __attribute__ (( __mode__ (__TI__)));
-#else
+/* gcc 3.1 and newer support __uint128_t.  */
+#if !__GNUC_PREREQ(3,1)
 typedef struct {
-  unsigned long u[4];
+      unsigned long u[4];
 } __attribute((aligned(16))) __uint128_t;
 #endif