]> Savannah Git Hosting - gnulib.git/commitdiff
localcharset: Avoid referencing rpl_setlocale on native Windows.
authorBruno Haible <bruno@clisp.org>
Tue, 24 Dec 2019 23:00:44 +0000 (00:00 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 24 Dec 2019 23:27:50 +0000 (00:27 +0100)
* lib/localcharset.c (setlocale): Undefine.

ChangeLog
lib/localcharset.c

index ea866fb0df2b1e1f43d2401ac841a45066e9cbd4..40f74abdde62671569dbd4d507e3aab5275e502e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-12-24  Bruno Haible  <bruno@clisp.org>
+
+       localcharset: Avoid referencing rpl_setlocale on native Windows.
+       * lib/localcharset.c (setlocale): Undefine.
+
 2019-12-24  Bruno Haible  <bruno@clisp.org>
 
        lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
index ffc0d8f73f3528f2006f6b1139d456b5ef98bdf1..5dd44291b4e55541ff144c29a73769a04fa57ec0 100644 (file)
@@ -58,6 +58,9 @@
 #elif defined WINDOWS_NATIVE
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
+  /* For the use of setlocale() below, the Gnulib override in setlocale.c is
+     not needed; see the platform lists in setlocale_null.m4.  */
+# undef setlocale
 #endif
 #if defined OS2
 # define INCL_DOS