This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi,
here is a Patch which fixes the problem with the s390 string.h
header file. It know compiles without warning or errors.
2001-03-13 Thorsten Kukuk <kukuk@suse.de>
* sysdeps/s390/bis/string.h: Add _FORCE_INLINES ifdefs
--- sysdeps/s390/bits/string.h 2001/03/12 08:21:29 1.5
+++ sysdeps/s390/bits/string.h 2001/03/13 09:51:19
@@ -40,6 +40,7 @@
#endif
#define _HAVE_STRING_ARCH_strlen 1
+#ifndef _FORCE_INLINES
__STRING_INLINE size_t
strlen (__const char *__str)
{
@@ -55,9 +56,11 @@
: "cc", "0" );
return __len;
}
+#endif
/* Copy SRC to DEST. */
#define _HAVE_STRING_ARCH_strcpy 1
+#ifndef _FORCE_INLINES
__STRING_INLINE char *
strcpy (char *__dest, __const char *__src)
{
@@ -70,8 +73,10 @@
: "cc", "memory", "0" );
return tmp;
}
+#endif
#define _HAVE_STRING_ARCH_strncpy 1
+#ifndef _FORCE_INLINES
__STRING_INLINE char *
strncpy (char *__dest, __const char *__src, size_t __n)
{
@@ -94,9 +99,11 @@
: "cc", "memory", "0" );
return tmp;
}
+#endif
/* Append SRC onto DEST. */
#define _HAVE_STRING_ARCH_strcat 1
+#ifndef _FORCE_INLINES
__STRING_INLINE char *
strcat(char *__dest, const char *__src)
{
@@ -113,9 +120,11 @@
: "cc", "memory", "0" );
return tmp;
}
+#endif
/* Append no more than N characters from SRC onto DEST. */
#define _HAVE_STRING_ARCH_strncat 1
+#ifndef _FORCE_INLINES
__STRING_INLINE char *
strncat (char *__dest, __const char *__src, size_t __n)
{
@@ -140,5 +149,6 @@
: "cc", "memory", "0" );
return tmp;
}
+#endif
#endif /* Use string inlines && GNU CC. */
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE GmbH Schanzaeckerstr. 10 90443 Nuernberg
Linux is like a Vorlon. It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |