Fixed MAX_PATH definition for POSIX systems without any

limit on filename length (where PATH_MAX is not defined).
This commit is contained in:
yabause 2009-08-09 21:07:34 +00:00
parent e007f422f4
commit 5e3cb11c83
1 changed files with 4 additions and 0 deletions

View File

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