z80 linker build using MSVC
[fw/sdcc] / link / z80 / aslink.h
index c9b629c2f5db1511297244c87f7d27ce226d152b..bdb0404ab6236b2fad91f60a663612cca4d90a1b 100644 (file)
 /*
  * Extensions: P. Felber
  */
-#include <linux/limits.h>
+#include <limits.h>
+
+#ifndef PATH_MAX
+ #if defined(__BORLANDC__) || defined(_MSC_VER)
+  #include <stdlib.h>
+  #define PATH_MAX     _MAX_PATH
+ #else
+  #define PATH_MAX     255     /* define a reasonable value */
+ #endif
+#endif
 
 #define        VERSION "V01.75"