aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/spc7110.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/spc7110.c b/source/spc7110.c
index a1b3a45..c6de135 100644
--- a/source/spc7110.c
+++ b/source/spc7110.c
@@ -99,8 +99,15 @@
#define chdir _chdir
#define getcwd _getcwd
#endif
-//zinx suggested this, for *nix compatibility
+
+#ifndef PATH_MAX
+#ifdef MAX_PATH
#define PATH_MAX MAX_PATH
+#else
+#define PATH_MAX 1024
+#endif
+#endif
+
#else // Unix
#include "display.h"
#include <limits.h>