aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliaspider2014-11-29 18:16:21 +0100
committeraliaspider2014-11-29 18:16:21 +0100
commit5a370d8f1c9d4111625e0eacd3794e4d7cbc70c5 (patch)
tree85bfdd8d0e1938b53b7c1d6b2a63cb9c70a3eeaf
parentade41a04bd3c89c0e89a3f2b17c772accb57a625 (diff)
downloadsnesemu-5a370d8f1c9d4111625e0eacd3794e4d7cbc70c5.tar.gz
snesemu-5a370d8f1c9d4111625e0eacd3794e4d7cbc70c5.tar.bz2
snesemu-5a370d8f1c9d4111625e0eacd3794e4d7cbc70c5.zip
(windows) build fix
-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>