From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Jelinek To: drepper@cygnus.com Cc: libc-hacker@sourceware.cygnus.com Subject: [PATCH] bits/errno.h fix for g++ Date: Tue, 07 Dec 1999 12:46:00 -0000 Message-id: <19991207215226.K515@mff.cuni.cz> X-SW-Source: 1999-12/msg00013.html Hi! g++ (have checked egcs 1.1.2 and gcc 2.96) is picky about the exact position of throw() and __attribute__, so this is needed: 1999-12-07 Jakub Jelinek * sysdeps/unix/sysv/linux/bits/errno.h (__errno_location): __THROW has to preceede __attribute__, otherwise g++ barfs. --- sysdeps/unix/sysv/linux/bits/errno.h.jj Tue Oct 19 05:05:05 1999 +++ sysdeps/unix/sysv/linux/bits/errno.h Tue Dec 7 21:30:26 1999 @@ -36,7 +36,7 @@ extern int errno; /* Function to get address of global `errno' variable. */ -extern int *__errno_location (void) __attribute__ ((__const__)) __THROW; +extern int *__errno_location (void) __THROW __attribute__ ((__const__)); # if defined _LIBC /* We wouldn't need a special macro anymore but it is history. */ Cheers, Jakub ___________________________________________________________________ Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj Linux version 2.3.18 on a sparc64 machine (1343.49 BogoMips) ___________________________________________________________________