From: Bruno Haible Date: Tue, 24 Dec 2019 23:00:44 +0000 (+0100) Subject: localcharset: Avoid referencing rpl_setlocale on native Windows. X-Git-Tag: v1.0~4423 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=be584c56eb1311606e5ea1a36363b97bddb6eed3;p=gnulib.git localcharset: Avoid referencing rpl_setlocale on native Windows. * lib/localcharset.c (setlocale): Undefine. --- diff --git a/ChangeLog b/ChangeLog index ea866fb0df..40f74abdde 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-12-24 Bruno Haible + + localcharset: Avoid referencing rpl_setlocale on native Windows. + * lib/localcharset.c (setlocale): Undefine. + 2019-12-24 Bruno Haible lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21). diff --git a/lib/localcharset.c b/lib/localcharset.c index ffc0d8f73f..5dd44291b4 100644 --- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -58,6 +58,9 @@ #elif defined WINDOWS_NATIVE # define WIN32_LEAN_AND_MEAN # include + /* 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