# HG changeset patch # User Bruno Haible # Date 1270288640 -7200 # Node ID f9a2da4bbba95c6917786a87e08ee2b332ffb051 # Parent 410c02bd7607980332a8d013fc5705935fd1e059 locale: Make C++ tests work on Cygwin and mingw. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-04-03 Bruno Haible + + 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. + 2010-04-03 Bruno Haible localename: Port to MacOS X 10.6. diff --git a/lib/locale.in.h b/lib/locale.in.h --- a/lib/locale.in.h +++ b/lib/locale.in.h @@ -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