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