bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mbrtowc.m4 bug in c++


From: Sam Steingold
Subject: mbrtowc.m4 bug in c++
Date: Thu, 25 Jun 2009 15:52:59 -0400
User-agent: Thunderbird 2.0.0.18 (X11/20081120)

Hi,
when a CC=g++, tests in mbrtowc.m4 fail with

error: 'mbtowc' was not declared in this scope

since 'mbtowc' is declared in stdlib.h,
I think this patch is in order:


2009-06-15  Sam Steingold  <address@hidden>

        * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): include <stdlib.h>
        for the mbtowc declaration


--- mbrtowc.m4.~1.2.~   2009-06-15 14:19:48.000000000 -0400
+++ mbrtowc.m4  2009-06-25 15:50:44.002471000 -0400
@@ -155,6 +155,7 @@ changequote(,)dnl
 changequote([,])dnl
       if test $LOCALE_ZH_CN != none; then
         AC_TRY_RUN([
+#include <stdlib.h>
 #include <locale.h>
 #include <string.h>
 #include <wchar.h>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]