6f5db5f7e9
fixincludes: * inclhack.def (glibc_strncpy): New fix. * fixincl.x: Regenerate. * tests/base/bits/string2.h: Update. gcc/testsuite: * gcc.dg/strncpy-fix-1.c: New test. From-SVN: r157717
24 lines
596 B
C
24 lines
596 B
C
/* DO NOT EDIT THIS FILE.
|
|
|
|
It has been auto-edited by fixincludes from:
|
|
|
|
"fixinc/tests/inc/bits/string2.h"
|
|
|
|
This had to be done to correct non-standard usages in the
|
|
original, manufacturer supplied header file. */
|
|
|
|
|
|
|
|
#if defined( GLIBC_C99_INLINE_3_CHECK )
|
|
# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)
|
|
# define __STRING_INLINE inline
|
|
# else
|
|
# define __STRING_INLINE extern __inline
|
|
# endif
|
|
#endif /* GLIBC_C99_INLINE_3_CHECK */
|
|
|
|
|
|
#if defined( GLIBC_STRNCPY_CHECK )
|
|
# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)
|
|
#endif /* GLIBC_STRNCPY_CHECK */
|