From f81e8dbc74186f34faa5ae2b0fe8bdc3f18114ae Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 9 Apr 2009 12:35:13 +0000 Subject: *: make "pragma GCC visibility push(hidden)" less ugly --- include/grp_.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'include/grp_.h') diff --git a/include/grp_.h b/include/grp_.h index 3d00b4aa7..deaf9e6a3 100644 --- a/include/grp_.h +++ b/include/grp_.h @@ -15,18 +15,15 @@ You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - + 02111-1307 USA. + */ /* * POSIX Standard: 9.2.1 Group Database Access */ +#ifndef BB_GRP_H +#define BB_GRP_H 1 -#ifndef BB_GRP_H -#define BB_GRP_H 1 - -#if __GNUC_PREREQ(4,1) -# pragma GCC visibility push(hidden) -#endif +PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN /* This file is #included after #include * We will use libc-defined structures, but will #define function names @@ -115,8 +112,6 @@ extern int getgrouplist(const char *__user, gid_t __group, of which USER is a member. Also include GROUP. */ extern int initgroups(const char *__user, gid_t __group); -#if __GNUC_PREREQ(4,1) -# pragma GCC visibility pop -#endif +POP_SAVED_FUNCTION_VISIBILITY #endif -- cgit v1.2.3