Debian Codegraph @

m4/wmempcpy.m4

raw
1 # wmempcpy.m4
2 # serial 3
3 dnl Copyright (C) 2020-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7 dnl This file is offered as-is, without any warranty.
8
9 AC_DEFUN([gl_FUNC_WMEMPCPY],
10 [
11 AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
12
13 dnl Persuade glibc <wchar.h> to declare wmempcpy().
14 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
15
16 dnl The wmempcpy() declaration in lib/wchar.in.h uses 'restrict'.
17 AC_REQUIRE([AC_C_RESTRICT])
18
19 gl_CHECK_FUNCS_ANDROID([wmempcpy], [[#include <wchar.h>]])
20 if test $ac_cv_func_wmempcpy = no; then
21 HAVE_WMEMPCPY=0
22 case "$gl_cv_onwards_func_wmempcpy" in
23 future*) REPLACE_WMEMPCPY=1 ;;
24 esac
25 fi
26 ])