bug-gnulib
[Top][All Lists]
Advanced

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

Re: NAME_MAX on MingW


From: Bruno Haible
Subject: Re: NAME_MAX on MingW
Date: Mon, 08 Mar 2021 11:06:50 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-203-generic; KDE/5.18.0; x86_64; ; )

Hi Reuben,

> Unfortunately, this doesn't help, because pathconf is not present on mingw.

Then use some fallback, e.g. 256 or PATH_MAX.

> So the best I can do is #define _POSIX_ to get the value of NAME_MAX that
> it has.

Speaking for Gnulib, we cannot support _POSIX_ on mingw. This macro modifies
the behaviour of the header files in 23 places. We already have enough work
with the various header files origins and modes (from Microsoft, with clang,
from old mingw, from mingw64, UNICODE or not,__USE_MINGW_ANSI_STDIO,
_USE_32BIT_TIME_T). We do not need yet another variant, _POSIX_.

Bruno




reply via email to

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