--- trunk/mkinitrd-magellan/busybox/include/xatonum.h 2010/04/29 20:38:48 983 +++ trunk/mkinitrd-magellan/busybox/include/xatonum.h 2010/05/30 11:32:42 984 @@ -7,9 +7,7 @@ * Licensed under GPLv2, see file LICENSE in this tarball for details. */ -#if __GNUC_PREREQ(4,1) -# pragma GCC visibility push(hidden) -#endif +PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN /* Provides extern declarations of functions */ #define DECLARE_STR_CONV(type, T, UT) \ @@ -24,6 +22,7 @@ unsigned type xato##UT(const char *str) FAST_FUNC; \ type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \ type xstrto##T##_range(const char *str, int b, type l, type u) FAST_FUNC; \ +type xstrto##T(const char *str, int b) FAST_FUNC; \ type xato##T##_range_sfx(const char *str, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \ type xato##T##_range(const char *str, type l, type u) FAST_FUNC; \ type xato##T##_sfx(const char *str, const struct suffix_mult *sfx) FAST_FUNC; \ @@ -68,6 +67,9 @@ narrow xstrto##N##_range(const char *str, int b, narrow l, narrow u) \ { return xstrto##W##_range(str, b, l, u); } \ static ALWAYS_INLINE \ +narrow xstrto##N(const char *str, int b) \ +{ return xstrto##W(str, b); } \ +static ALWAYS_INLINE \ narrow xato##N##_range_sfx(const char *str, narrow l, narrow u, const struct suffix_mult *sfx) \ { return xato##W##_range_sfx(str, l, u, sfx); } \ static ALWAYS_INLINE \ @@ -99,7 +101,7 @@ /* Specialized */ -int BUG_xatou32_unimplemented(void); +uint32_t BUG_xatou32_unimplemented(void); static ALWAYS_INLINE uint32_t xatou32(const char *numstr) { if (UINT_MAX == 0xffffffff) @@ -156,7 +158,7 @@ int bb_strtoi(const char *arg, char **endp, int base) FAST_FUNC; #endif -int BUG_bb_strtou32_unimplemented(void); +uint32_t BUG_bb_strtou32_unimplemented(void); static ALWAYS_INLINE uint32_t bb_strtou32(const char *arg, char **endp, int base) { @@ -171,6 +173,4 @@ double bb_strtod(const char *arg, char **endp) FAST_FUNC; -#if __GNUC_PREREQ(4,1) -# pragma GCC visibility pop -#endif +POP_SAVED_FUNCTION_VISIBILITY