diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-09 12:35:13 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-09 12:35:13 +0000 |
commit | f81e8dbc74186f34faa5ae2b0fe8bdc3f18114ae (patch) | |
tree | 91ee95914c2b9a07817bd6f596fc3df758651147 /include/libbb.h | |
parent | 327fd47f362843fc62fbee6169904c416ca13d11 (diff) | |
download | busybox-w32-f81e8dbc74186f34faa5ae2b0fe8bdc3f18114ae.tar.gz busybox-w32-f81e8dbc74186f34faa5ae2b0fe8bdc3f18114ae.tar.bz2 busybox-w32-f81e8dbc74186f34faa5ae2b0fe8bdc3f18114ae.zip |
*: make "pragma GCC visibility push(hidden)" less ugly
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/include/libbb.h b/include/libbb.h index 74ec678d8..babf9c9f7 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -7,8 +7,8 @@ | |||
7 | * | 7 | * |
8 | * Licensed under the GPL version 2, see the file LICENSE in this tarball. | 8 | * Licensed under the GPL version 2, see the file LICENSE in this tarball. |
9 | */ | 9 | */ |
10 | #ifndef __LIBBUSYBOX_H__ | 10 | #ifndef LIBBB_H |
11 | #define __LIBBUSYBOX_H__ 1 | 11 | #define LIBBB_H 1 |
12 | 12 | ||
13 | #include "platform.h" | 13 | #include "platform.h" |
14 | 14 | ||
@@ -110,9 +110,7 @@ int sysinfo(struct sysinfo* info); | |||
110 | 110 | ||
111 | /* Make all declarations hidden (-fvisibility flag only affects definitions) */ | 111 | /* Make all declarations hidden (-fvisibility flag only affects definitions) */ |
112 | /* (don't include system headers after this until corresponding pop!) */ | 112 | /* (don't include system headers after this until corresponding pop!) */ |
113 | #if __GNUC_PREREQ(4,1) | 113 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN |
114 | # pragma GCC visibility push(hidden) | ||
115 | #endif | ||
116 | 114 | ||
117 | 115 | ||
118 | #if ENABLE_USE_BB_PWD_GRP | 116 | #if ENABLE_USE_BB_PWD_GRP |
@@ -1532,9 +1530,6 @@ extern const char bb_default_login_shell[]; | |||
1532 | #define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0]))) | 1530 | #define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0]))) |
1533 | 1531 | ||
1534 | 1532 | ||
1535 | #if __GNUC_PREREQ(4,1) | 1533 | POP_SAVED_FUNCTION_VISIBILITY |
1536 | # pragma GCC visibility pop | ||
1537 | #endif | ||
1538 | |||
1539 | 1534 | ||
1540 | #endif /* __LIBBUSYBOX_H__ */ | 1535 | #endif |