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 /modutils | |
| 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 'modutils')
| -rw-r--r-- | modutils/modutils.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/modutils/modutils.h b/modutils/modutils.h index 0a29ff240..086bb3977 100644 --- a/modutils/modutils.h +++ b/modutils/modutils.h | |||
| @@ -6,14 +6,12 @@ | |||
| 6 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #ifndef __MODUTILS_H__ | 9 | #ifndef MODUTILS_H |
| 10 | #define __MODUTILS_H__ | 10 | #define MODUTILS_H 1 |
| 11 | 11 | ||
| 12 | #include "libbb.h" | 12 | #include "libbb.h" |
| 13 | 13 | ||
| 14 | #if __GNUC_PREREQ(4,1) | 14 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN |
| 15 | # pragma GCC visibility push(hidden) | ||
| 16 | #endif | ||
| 17 | 15 | ||
| 18 | /* linux/include/linux/module.h has 64, but this is also used | 16 | /* linux/include/linux/module.h has 64, but this is also used |
| 19 | * internally for the maximum alias name length, which can be quite long */ | 17 | * internally for the maximum alias name length, which can be quite long */ |
| @@ -62,8 +60,6 @@ int FAST_FUNC bb_delete_module(const char *module, unsigned int flags); | |||
| 62 | int FAST_FUNC bb_init_module_24(const char *module, const char *options); | 60 | int FAST_FUNC bb_init_module_24(const char *module, const char *options); |
| 63 | #endif | 61 | #endif |
| 64 | 62 | ||
| 65 | #if __GNUC_PREREQ(4,1) | 63 | POP_SAVED_FUNCTION_VISIBILITY |
| 66 | # pragma GCC visibility pop | ||
| 67 | #endif | ||
| 68 | 64 | ||
| 69 | #endif | 65 | #endif |
