use __inline__ instead of inline to avoid build errors with -ansi
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 30 Dec 2007 04:25:17 +0000 (04:25 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 30 Dec 2007 04:25:17 +0000 (04:25 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10051 3c298f89-4303-0410-b956-a3cf2f4a3e73

toolchain/uClibc/patches/110-compat_macros.patch

index 1f9babdfbd3d638910a09784fc653acca7e3a0c9..ebb0f3114c0d7fe3e4d9fa0ddffee17295cc758c 100644 (file)
@@ -20,31 +20,31 @@ Index: uClibc-0.9.29/include/string.h
 -#  define rindex(s,c) strrchr((s), (c))
 -#  endif
 +/* Copy N bytes of SRC to DEST (like memmove, but args reversed).  */
-+static inline void bcopy (__const void *__src, void *__dest, size_t __n)
++static __inline__ void bcopy (__const void *__src, void *__dest, size_t __n)
 +{
 +      memmove(__dest, __src, __n);
 +}
 +
 +/* Set N bytes of S to 0.  */
-+static inline void bzero (void *__s, size_t __n)
++static __inline__ void bzero (void *__s, size_t __n)
 +{
 +      memset(__s, 0, __n);
 +}
 +
 +/* Compare N bytes of S1 and S2 (same as memcmp).  */
-+static inline int bcmp (__const void *__s1, __const void *__s2, size_t __n)
++static __inline__ int bcmp (__const void *__s1, __const void *__s2, size_t __n)
 +{
 +      return memcmp(__s1, __s2, __n);
 +}
 +
 +/* Find the first occurrence of C in S (same as strchr).  */
-+static inline char *index (__const char *__s, int __c)
++static __inline__ char *index (__const char *__s, int __c)
 +{
 +      return strchr(__s, __c);
 +}
 +
 +/* Find the last occurrence of C in S (same as strrchr).  */
-+static inline char *rindex (__const char *__s, int __c)
++static __inline__ char *rindex (__const char *__s, int __c)
 +{
 +      return strrchr(__s, __c);
 +}
@@ -66,31 +66,31 @@ Index: uClibc-0.9.29/include/strings.h
 -#  define rindex(s,c) strrchr((s), (c))
 +
 +/* Copy N bytes of SRC to DEST (like memmove, but args reversed).  */
-+static inline void bcopy (__const void *__src, void *__dest, size_t __n)
++static __inline__ void bcopy (__const void *__src, void *__dest, size_t __n)
 +{
 +      memmove(__dest, __src, __n);
 +}
 +
 +/* Set N bytes of S to 0.  */
-+static inline void bzero (void *__s, size_t __n)
++static __inline__ void bzero (void *__s, size_t __n)
 +{
 +      memset(__s, 0, __n);
 +}
 +
 +/* Compare N bytes of S1 and S2 (same as memcmp).  */
-+static inline int bcmp (__const void *__s1, __const void *__s2, size_t __n)
++static __inline__ int bcmp (__const void *__s1, __const void *__s2, size_t __n)
 +{
 +      return memcmp(__s1, __s2, __n);
 +}
 +
 +/* Find the first occurrence of C in S (same as strchr).  */
-+static inline char *index (__const char *__s, int __c)
++static __inline__ char *index (__const char *__s, int __c)
 +{
 +      return strchr(__s, __c);
 +}
 +
 +/* Find the last occurrence of C in S (same as strrchr).  */
-+static inline char *rindex (__const char *__s, int __c)
++static __inline__ char *rindex (__const char *__s, int __c)
 +{
 +      return strrchr(__s, __c);
 +}