public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] bits/errno.h fix for g++
@ 1999-12-07 12:46 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 1999-12-07 12:46 UTC (permalink / raw)
  To: drepper; +Cc: libc-hacker

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  <jakub@redhat.com>

	* 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)
___________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-12-07 12:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-07 12:46 [PATCH] bits/errno.h fix for g++ Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).