NAME_MAX is defined in limits.h.
And indeed it is there on Mingw, but guarded by the Windows-specific non-standard macro _POSIX_.
However, the macro is still used in the fixed system header with GCC 10 in my bang-up-to-date Mingw installation.
I can't see this macro referenced anywhere in gnulib's history.
So my question is: is there something gnulib can/should do here?
--