From 5a370d8f1c9d4111625e0eacd3794e4d7cbc70c5 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Sat, 29 Nov 2014 18:16:21 +0100 Subject: (windows) build fix --- source/spc7110.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3