From 4f0b121a93fe23a9dbbe97d7b961438ac11d019b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 7 Nov 2002 18:33:49 +0000 Subject: Fixup function prototype for __uint128_t which fixes the compile on powerpc with gcc 3.2. -Erik --- libc/sysdeps/linux/powerpc/sys/procfs.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libc/sysdeps/linux/powerpc/sys') diff --git a/libc/sysdeps/linux/powerpc/sys/procfs.h b/libc/sysdeps/linux/powerpc/sys/procfs.h index b761bf21c..f2424889e 100644 --- a/libc/sysdeps/linux/powerpc/sys/procfs.h +++ b/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 -- cgit v1.2.3