aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-09 12:35:13 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-09 12:35:13 +0000
commitf81e8dbc74186f34faa5ae2b0fe8bdc3f18114ae (patch)
tree91ee95914c2b9a07817bd6f596fc3df758651147 /networking/udhcp
parent327fd47f362843fc62fbee6169904c416ca13d11 (diff)
downloadbusybox-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')
-rw-r--r--networking/udhcp/common.h13
-rw-r--r--networking/udhcp/dhcpc.h13
-rw-r--r--networking/udhcp/dhcpd.h13
-rw-r--r--networking/udhcp/options.h12
4 files changed, 16 insertions, 35 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) 16PUSH_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) 103POP_SAVED_FUNCTION_VISIBILITY
107# pragma GCC visibility pop
108#endif
109 104
110#endif 105#endif
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h
index a9348497f..7b7794266 100644
--- a/networking/udhcp/dhcpc.h
+++ b/networking/udhcp/dhcpc.h
@@ -1,12 +1,9 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* dhcpc.h */ 2/* dhcpc.h */
3#ifndef UDHCP_DHCPC_H
4#define UDHCP_DHCPC_H 1
3 5
4#ifndef _DHCPC_H 6PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
5#define _DHCPC_H
6
7#if __GNUC_PREREQ(4,1)
8# pragma GCC visibility push(hidden)
9#endif
10 7
11struct client_config_t { 8struct client_config_t {
12 uint8_t arp[6]; /* Our arp address */ 9 uint8_t arp[6]; /* Our arp address */
@@ -49,8 +46,6 @@ int send_release(uint32_t server, uint32_t ciaddr) FAST_FUNC;
49 46
50int udhcp_recv_raw_packet(struct dhcpMessage *payload, int fd) FAST_FUNC; 47int udhcp_recv_raw_packet(struct dhcpMessage *payload, int fd) FAST_FUNC;
51 48
52#if __GNUC_PREREQ(4,1) 49POP_SAVED_FUNCTION_VISIBILITY
53# pragma GCC visibility pop
54#endif
55 50
56#endif 51#endif
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h
index b4e180882..9667c61e8 100644
--- a/networking/udhcp/dhcpd.h
+++ b/networking/udhcp/dhcpd.h
@@ -1,12 +1,9 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* dhcpd.h */ 2/* dhcpd.h */
3#ifndef UDHCP_DHCPD_H
4#define UDHCP_DHCPD_H 1
3 5
4#ifndef _DHCPD_H 6PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
5#define _DHCPD_H
6
7#if __GNUC_PREREQ(4,1)
8# pragma GCC visibility push(hidden)
9#endif
10 7
11/************************************/ 8/************************************/
12/* Defaults _you_ may want to tweak */ 9/* Defaults _you_ may want to tweak */
@@ -134,8 +131,6 @@ void read_leases(const char *file) FAST_FUNC;
134struct option_set *find_option(struct option_set *opt_list, uint8_t code) FAST_FUNC; 131struct option_set *find_option(struct option_set *opt_list, uint8_t code) FAST_FUNC;
135 132
136 133
137#if __GNUC_PREREQ(4,1) 134POP_SAVED_FUNCTION_VISIBILITY
138# pragma GCC visibility pop
139#endif
140 135
141#endif 136#endif
diff --git a/networking/udhcp/options.h b/networking/udhcp/options.h
index 87440c30c..23370da6e 100644
--- a/networking/udhcp/options.h
+++ b/networking/udhcp/options.h
@@ -1,11 +1,9 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* options.h */ 2/* options.h */
3#ifndef _OPTIONS_H 3#ifndef UDHCP_OPTIONS_H
4#define _OPTIONS_H 4#define UDHCP_OPTIONS_H 1
5 5
6#if __GNUC_PREREQ(4,1) 6PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
7# pragma GCC visibility push(hidden)
8#endif
9 7
10#define TYPE_MASK 0x0F 8#define TYPE_MASK 0x0F
11 9
@@ -111,8 +109,6 @@ char *dname_dec(const uint8_t *cstr, int clen, const char *pre) FAST_FUNC;
111uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen) FAST_FUNC; 109uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen) FAST_FUNC;
112#endif 110#endif
113 111
114#if __GNUC_PREREQ(4,1) 112POP_SAVED_FUNCTION_VISIBILITY
115# pragma GCC visibility pop
116#endif
117 113
118#endif 114#endif