mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-02 17:50:20 +00:00
fb78612a96
This patch fix the static build for strftime, which uses __wcschr. Current powerpc32 implementation defines the __wcschr be an alias to __wcschr_ppc32 and current implementation misses the correct alias for static build. It also changes the default wcschr.c logic so a IFUNC implementation should just define WCSCHR and undefine the required alias/internal definitions.
23 lines
519 B
C
23 lines
519 B
C
#include <wchar.h>
|
|
|
|
#if IS_IN (libc)
|
|
# undef libc_hidden_weak
|
|
# define libc_hidden_weak(name)
|
|
|
|
# undef weak_alias
|
|
# define weak_alias(name,alias)
|
|
|
|
# ifdef SHARED
|
|
# undef libc_hidden_def
|
|
# define libc_hidden_def(name) \
|
|
__hidden_ver1 (__wcschr_ia32, __GI_wcschr, __wcschr_ia32); \
|
|
strong_alias (__wcschr_ia32, __wcschr_ia32_1); \
|
|
__hidden_ver1 (__wcschr_ia32_1, __GI___wcschr, __wcschr_ia32_1);
|
|
# endif
|
|
#endif
|
|
|
|
extern __typeof (wcschr) __wcschr_ia32;
|
|
|
|
#define WCSCHR __wcschr_ia32
|
|
#include <wcsmbs/wcschr.c>
|