define PATH_MAX if needed.
authoraliaspider <aliaspider@gmail.com>
Thu, 2 Mar 2017 11:10:30 +0000 (12:10 +0100)
committeraliaspider <aliaspider@gmail.com>
Thu, 2 Mar 2017 11:10:30 +0000 (12:10 +0100)
frontend/libretro.c

index 87dcb2d..4d56356 100644 (file)
@@ -932,6 +932,10 @@ static struct retro_disk_control_callback disk_control = {
 #define SLASH '/'
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX  4096
+#endif
+
 static char base_dir[PATH_MAX];
 
 static bool read_m3u(const char *file)