Blame sysdeps/s390/wcschr-c.c

Packit Service dab6cd
/* Default wcschr implementation for S/390.
Packit Service dab6cd
   Copyright (C) 2015-2018 Free Software Foundation, Inc.
Packit Service dab6cd
   This file is part of the GNU C Library.
Packit Service dab6cd
Packit Service dab6cd
   The GNU C Library is free software; you can redistribute it and/or
Packit Service dab6cd
   modify it under the terms of the GNU Lesser General Public
Packit Service dab6cd
   License as published by the Free Software Foundation; either
Packit Service dab6cd
   version 2.1 of the License, or (at your option) any later version.
Packit Service dab6cd
Packit Service dab6cd
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service dab6cd
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service dab6cd
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service dab6cd
   Lesser General Public License for more details.
Packit Service dab6cd
Packit Service dab6cd
   You should have received a copy of the GNU Lesser General Public
Packit Service dab6cd
   License along with the GNU C Library; if not, see
Packit Service dab6cd
   <http://www.gnu.org/licenses/>.  */
Packit Service dab6cd
Packit Service dab6cd
#include <ifunc-wcschr.h>
Packit Service dab6cd
Packit Service dab6cd
#if HAVE_WCSCHR_C
Packit Service dab6cd
# if HAVE_WCSCHR_IFUNC || HAVE_WCSCHR_Z13
Packit Service dab6cd
#  define WCSCHR WCSCHR_C
Packit Service dab6cd
Packit Service dab6cd
#  undef weak_alias
Packit Service dab6cd
#  define weak_alias(name, alias)
Packit Service dab6cd
Packit Service dab6cd
#  if defined SHARED && IS_IN (libc)
Packit Service dab6cd
#   undef libc_hidden_weak
Packit Service dab6cd
#   define libc_hidden_weak(name)
Packit Service dab6cd
#   undef libc_hidden_def
Packit Service dab6cd
#   if ! defined HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT
Packit Service dab6cd
#    define libc_hidden_def(name)					\
Packit Service dab6cd
  __hidden_ver1 (__wcschr_c, __GI_wcschr, __wcschr_c)  __attribute__((weak)); \
Packit Service dab6cd
  strong_alias (__wcschr_c, __wcschr_c_1);				\
Packit Service dab6cd
  __hidden_ver1 (__wcschr_c_1, __GI___wcschr, __wcschr_c_1);
Packit Service dab6cd
#   else
Packit Service dab6cd
#    define libc_hidden_def(name)
Packit Service dab6cd
#   endif
Packit Service dab6cd
#  endif
Packit Service dab6cd
# endif
Packit Service dab6cd
Packit Service dab6cd
# include <wcsmbs/wcschr.c>
Packit Service dab6cd
#endif