Blame sysdeps/s390/wmemchr-c.c

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