bug-gnulib
[Top][All Lists]
Advanced

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

Re: wctype.h compile error on mingw with GNULIB_NAMESPACE


From: Bruno Haible
Subject: Re: wctype.h compile error on mingw with GNULIB_NAMESPACE
Date: Sun, 24 Nov 2019 20:15:57 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-166-generic; KDE/5.18.0; x86_64; ; )

Christian Biesinger wrote:
> Thanks for your quick patches! This solves the problem for me.

Thanks for the confirmation. Some other patches are needed for the same
thing to work on Cygwin and mingw. Will push them once Savannah is back online.


2019-11-24  Bruno Haible  <address@hidden>

        Fix errors in C++ mode on Cygwin.
        * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
        _GL_CXXALIAS_SYS.

        windows-timedmutex: Fix errors in C++ mode on mingw.
        * lib/windows-timedmutex.h: Add closing brace.

        iswctype: Fix errors in C++ mode on mingw.
        * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
        is 1.
        * lib/iswctype.c (iswctype): Add another implementation, for the
        GNULIB_defined_wint_t case.
        * modules/iswctype (configure.ac): Compile iswctype.c also if
        GNULIB_OVERRIDES_WINT_T is 1.

        sys_time: Fix errors in C++ mode on mingw.
        * lib/sys_time.in.h (timeval): Restore the redirection
        '#define timeval rpl_timeval', for when the symbol timeval is being used
        outside the 'gnulib' namespace.
        * lib/sys_select.in.h (select): In C++, write 'timeval', not
        'struct timeval'.

        Fix errors in C++ mode on mingw.
        * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
        instead of _GL_CXXALIAS_SYS.
        * lib/signal.in.h (pthread_sigmask): Likewise.
        * lib/spawn.in.h (posix_spawn_file_actions_addopen,
        posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
        Likewise.
        * lib/wchar.in.h (btowc): Likewise.

Attachment: 0001-Fix-errors-in-C-mode-on-Cygwin.patch
Description: Text Data

Attachment: 0002-windows-timedmutex-Fix-errors-in-C-mode-on-mingw.patch
Description: Text Data

Attachment: 0003-iswctype-Fix-errors-in-C-mode-on-mingw.patch
Description: Text Data

Attachment: 0004-sys_time-Fix-errors-in-C-mode-on-mingw.patch
Description: Text Data

Attachment: 0005-Fix-errors-in-C-mode-on-mingw.patch
Description: Text Data


reply via email to

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