bug-gnulib
[Top][All Lists]
Advanced

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

Re: duplocale cygwin failure


From: Bruno Haible
Subject: Re: duplocale cygwin failure
Date: Sat, 3 Apr 2010 10:58:02 +0100
User-agent: KMail/1.9.9

Hi Simon,

> In file included from test-locale-c++.cc:22:
> ../gllib/locale.h:329: error: ‘duplocale’ was not declared in this scope
> ../gllib/locale.h:329: error: invalid type in declaration before ‘;’ token
> make[3]: *** [test-locale-c++.o] Error 1
> make[3]: Leaving directory `/home/Simon/gnulib/build/gltests'

This error is due to the fact that we cannot provide a 'duplocale' replacement
on all platforms.


2010-04-03  Bruno Haible  <address@hidden>

        locale: Make C++ tests work on Cygwin and mingw.
        * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
        cannot provide the function.
        Reported by Simon Josefsson.

--- lib/locale.in.h.orig        Sat Apr  3 11:55:29 2010
+++ lib/locale.in.h     Sat Apr  3 10:58:14 2010
@@ -59,7 +59,9 @@
 _GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale));
 #  endif
 # endif
+# if @HAVE_DUPLOCALE@
 _GL_CXXALIASWARN (duplocale);
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef duplocale
 # if HAVE_RAW_DECL_DUPLOCALE




reply via email to

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