/* Default rawmemchr implementation for S/390.
   Copyright (C) 2015-2018 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <http://www.gnu.org/licenses/>.  */

#if defined HAVE_S390_VX_ASM_SUPPORT && IS_IN (libc)
# include <string.h>

# define RAWMEMCHR  __rawmemchr_c
# undef weak_alias
# define weak_alias(a, b)
# ifdef SHARED
#  undef libc_hidden_def
#  define libc_hidden_def(name)				\
     __hidden_ver1 (__rawmemchr_c, __GI___rawmemchr, __rawmemchr_c);
# endif /* SHARED */

extern __typeof (rawmemchr) __rawmemchr_c attribute_hidden;

# include <string/rawmemchr.c>
#endif /* !(defined HAVE_S390_VX_ASM_SUPPORT && IS_IN (libc)) */
