From 5e3cb11c8367ac65fd5bbf1131e5cf42a000a3b6 Mon Sep 17 00:00:00 2001 From: yabause Date: Sun, 9 Aug 2009 21:07:34 +0000 Subject: [PATCH] Fixed MAX_PATH definition for POSIX systems without any limit on filename length (where PATH_MAX is not defined). --- desmume/src/types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desmume/src/types.h b/desmume/src/types.h index 474c097d6..8c5c49324 100644 --- a/desmume/src/types.h +++ b/desmume/src/types.h @@ -48,8 +48,12 @@ #ifdef __GNUC__ #include +#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))