]> Savannah Git Hosting - gnulib.git/commitdiff
hard-locale tests: Fix a conflict with the C++ tests.
authorBruno Haible <bruno@clisp.org>
Wed, 1 Jan 2020 15:42:49 +0000 (16:42 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 1 Jan 2020 15:42:49 +0000 (16:42 +0100)
* modules/hard-locale-tests (Makefile.am): Build a program named
'current-locale', not 'locale'.

ChangeLog
modules/hard-locale-tests

index ac61fdf11512e86d48e85871bd129333524d2b6e..0bde2392a8bb087c9dbd52cfdd13cb3e350955a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-01-01  Bruno Haible  <bruno@clisp.org>
+
+       hard-locale tests: Fix a conflict with the C++ tests.
+       * modules/hard-locale-tests (Makefile.am): Build a program named
+       'current-locale', not 'locale'.
+
 2020-01-01  Bruno Haible  <bruno@clisp.org>
 
        doc: Update documentation about wchar_t.
index ddd101f1752baf0766b77fa29973c472145a9398..ac7fcb2a671e583abd87e6f492c5c31a0d2cdb9b 100644 (file)
@@ -15,5 +15,8 @@ AC_CHECK_FUNCS_ONCE([duplocale])
 Makefile.am:
 TESTS += test-hard-locale
 check_PROGRAMS += test-hard-locale
-noinst_PROGRAMS += locale
 test_hard_locale_LDADD = $(LDADD) $(LIB_SETLOCALE) @LIB_HARD_LOCALE@
+# We cannot call this program 'locale', because the C++ compiler on Mac OS X
+# would then barf upon '#include <locale>'. So, call it 'current-locale'.
+noinst_PROGRAMS += current-locale
+current_locale_SOURCES = locale.c