bug-gnulib
[Top][All Lists]
Advanced

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

Re: mbrtowc.m4 bug in c++


From: Bruno Haible
Subject: Re: mbrtowc.m4 bug in c++
Date: Fri, 26 Jun 2009 02:59:21 +0200
User-agent: KMail/1.9.9

Sam Steingold wrote:
> 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:

You're absolutely right. Applied like this:


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

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

--- m4/mbrtowc.m4.orig  2009-06-26 02:52:29.000000000 +0200
+++ m4/mbrtowc.m4       2009-06-26 02:51:56.000000000 +0200
@@ -1,4 +1,4 @@
-# mbrtowc.m4 serial 15
+# mbrtowc.m4 serial 16
 dnl Copyright (C) 2001-2002, 2004-2005, 2008, 2009 Free Software Foundation, 
Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -156,6 +156,7 @@
       if test $LOCALE_ZH_CN != none; then
         AC_TRY_RUN([
 #include <locale.h>
+#include <stdlib.h>
 #include <string.h>
 #include <wchar.h>
 int main ()




reply via email to

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