mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
Windows: define MAXNAMLEN for Windows.
MAXNAMLEN can be defined using _MAX_PATH from stdlib.h which will fix the BASENAMELEN definition too.
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
# define MAXNAMLEN NAME_MAX /* for Linux before .99p3 */
|
||||
#endif
|
||||
|
||||
#if defined(_MAX_PATH) && !defined(MAXNAMLEN)
|
||||
# define MAXNAMLEN _MAX_PATH /* for Windows */
|
||||
#endif
|
||||
|
||||
// Default value.
|
||||
#ifndef MAXNAMLEN
|
||||
# define MAXNAMLEN 512
|
||||
|
Reference in New Issue
Block a user