bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #57406] mbsinit.c fails to compile with GCC 9.2.0 on MinGW-w64 (i68


From: Tom Kacvinsky
Subject: [bug #57406] mbsinit.c fails to compile with GCC 9.2.0 on MinGW-w64 (i686)
Date: Mon, 16 Dec 2019 10:02:18 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36

Follow-up Comment #2, bug #57406 (project gettext):

WE have been having discussions on the list and it turns out the trick that
was proposed won't work.  mbsinit() is not auto-detected by the gettext
configure command, but is hardcoded into the mbsinit.c file
(gettext-runtime/gnulib-lib/mbsinit.)::

#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__

/* On native Windows, 'mbstate_t' is defined as 'int'.  */

int
mbsinit (const mbstate_t *ps)
{
  return ps == NULL || *ps == 0;
}

#else

There are modifications for this for later versions gettext right now, I am
looking at the source code for 0.19.8.1. related to whether the build system
is MINGW based.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57406>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]