Fixed MAX_PATH definition for POSIX systems without any
limit on filename length (where PATH_MAX is not defined).
This commit is contained in:
parent
e007f422f4
commit
5e3cb11c83
|
@ -48,8 +48,12 @@
|
|||
|
||||
#ifdef __GNUC__
|
||||
#include <limits.h>
|
||||
#ifndef PATH_MAX
|
||||
#define MAX_PATH 1024
|
||||
#else
|
||||
#define MAX_PATH PATH_MAX
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__INTEL_COMPILER)
|
||||
#define ALIGN(X) __declspec(align(X))
|
||||
|
|
Loading…
Reference in New Issue