changeset 13113:f9a2da4bbba9

locale: Make C++ tests work on Cygwin and mingw.
author Bruno Haible <bruno@clisp.org>
date Sat, 03 Apr 2010 11:57:20 +0200
parents 410c02bd7607
children 6b06dccb9db4
files ChangeLog lib/locale.in.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+	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  <bruno@clisp.org>
 
 	localename: Port to MacOS X 10.6.
--- 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