New module 'wmemchr', part 2.
authorBruno Haible <bruno@clisp.org>
Sat, 5 Feb 2011 11:32:32 +0000 (12:32 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 5 Feb 2011 11:32:32 +0000 (12:32 +0100)
ChangeLog
m4/wchar_h.m4

index 082e7c8..41497ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,8 +6,8 @@
        * lib/wmemchr.c: New file.
        * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
        * m4/wmemchr.m4: New file.
-       * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR,
-       HAVE_WMEMCHR.
+       * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
+       (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
        * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
        * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
        * doc/posix-functions/wmemchr.texi: Mention the new module.
index b43756d..9724d13 100644 (file)
@@ -48,8 +48,10 @@ AC_DEFUN([gl_WCHAR_H],
 # include <time.h>
 #endif
 #include <wchar.h>
-    ]], [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb
-    wcsrtombs wcsnrtombs wcwidth])
+    ]],
+    [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb
+     wcsrtombs wcsnrtombs wcwidth wmemchr
+    ])
 ])
 
 dnl Check whether <wchar.h> is usable at all.