xstrtol: remove the base-checking changes
[gnulib.git] / m4 / wmemmove.m4
blobe1fa5025be4756d4f4aea6944ba31a6942baf34d
1 # wmemmove.m4
2 # serial 5
3 dnl Copyright (C) 2011-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.
8 AC_DEFUN([gl_FUNC_WMEMMOVE],
10   AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
11   dnl We cannot use AC_CHECK_FUNCS here, because the MSVC 9 header files
12   dnl provide this function as an inline function definition.
13   AC_CACHE_CHECK([for wmemmove], [gl_cv_func_wmemmove],
14     [AC_LINK_IFELSE(
15        [AC_LANG_PROGRAM(
16           [[#include <wchar.h>
17           ]],
18           [[return ! wmemmove ((wchar_t *) 0, (const wchar_t *) 0, 0);]])
19        ],
20        [gl_cv_func_wmemmove=yes],
21        [gl_cv_func_wmemmove=no])
22     ])
23   if test $gl_cv_func_wmemmove = no; then
24     HAVE_WMEMMOVE=0
25   fi