Fix syntax error in __THROW macro

This commit is contained in:
Andreas Schwab 2011-10-17 11:22:13 +02:00
parent 629f62ef0f
commit 49a43d80ec
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2011-10-17 Andreas Schwab <schwab@redhat.com>
* misc/sys/cdefs.h: Fix last change.
* grp/initgroups.c (internal_getgrouplist): Fix initgroups
database lookup.

View File

@ -53,8 +53,8 @@
as non-throwing using a function attribute since programs can use
the -fexceptions options for C code as well. */
# if !defined __cplusplus && __GNUC_PREREQ (3, 3)
# define __THROW __attribute__ ((__nothrow__ __LEAF_ATTR))
# define __NTH(fct) __attribute__ ((__nothrow__ __LEAF_ATTR)) fct
# define __THROW __attribute__ ((__nothrow__ __LEAF))
# define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct
# else
# if defined __cplusplus && __GNUC_PREREQ (2,8)
# define __THROW throw ()