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:
Seth Jackson
2016-01-10 13:50:30 -05:00
parent dd8812c7cb
commit 4fc85e5c87

View File

@@ -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