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 /networking/udhcp/common.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 'networking/udhcp/common.h')
-rw-r--r-- | networking/udhcp/common.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h index 15f0d9a54..5a258c064 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h | |||
@@ -6,17 +6,14 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
8 | */ | 8 | */ |
9 | 9 | #ifndef UDHCP_COMMON_H | |
10 | #ifndef _COMMON_H | 10 | #define UDHCP_COMMON_H 1 |
11 | #define _COMMON_H | ||
12 | 11 | ||
13 | #include "libbb.h" | 12 | #include "libbb.h" |
14 | #include <netinet/udp.h> | 13 | #include <netinet/udp.h> |
15 | #include <netinet/ip.h> | 14 | #include <netinet/ip.h> |
16 | 15 | ||
17 | #if __GNUC_PREREQ(4,1) | 16 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN |
18 | # pragma GCC visibility push(hidden) | ||
19 | #endif | ||
20 | 17 | ||
21 | #define DEFAULT_SCRIPT CONFIG_UDHCPC_DEFAULT_SCRIPT | 18 | #define DEFAULT_SCRIPT CONFIG_UDHCPC_DEFAULT_SCRIPT |
22 | 19 | ||
@@ -103,8 +100,6 @@ int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *i | |||
103 | # define DEBUG(str, args...) do {;} while (0) | 100 | # define DEBUG(str, args...) do {;} while (0) |
104 | #endif | 101 | #endif |
105 | 102 | ||
106 | #if __GNUC_PREREQ(4,1) | 103 | POP_SAVED_FUNCTION_VISIBILITY |
107 | # pragma GCC visibility pop | ||
108 | #endif | ||
109 | 104 | ||
110 | #endif | 105 | #endif |