replace FILENAME_MAX with PATH_MAX
[fw/sdcc] / as / mcs51 / aslink.h
index 12ef9053dcbf1e1685f9f8d5e90e19f9bdaacf31..0c746ca7d91a36c0d2ea6c5c2df24d034664d103 100644 (file)
 #define        OTHERSYSTEM 
 #endif
 
+/*
+ * PATH_AMX
+ */
+#include <limits.h>
+#ifndef PATH_MAX               /* POSIX, but not required   */
+#define PATH_MAX 255           /* define a reasonable value */
+#endif
+
 /*
  * This file defines the format of the
  * relocatable binary file.
@@ -86,7 +94,7 @@
 
 #define NCPS   80              /* characters per symbol (JLH: change from 8) */
 #define        NDATA   16              /* actual data */
-#define        NINPUT  FILENAME_MAX    /* Input buffer size (BH: change from 128) */
+#define        NINPUT  PATH_MAX        /* Input buffer size */
 #define        NHASH   64              /* Buckets in hash table */
 #define        HMASK   077             /* Hash mask */
 #define        NLPP    60              /* Lines per page */