make getfid() more robust and fixed gcc warning
[fw/sdcc] / as / mcs51 / asm.h
index b66ab5118009f7ce80dd09f456b6b62a693bd70b..0036a063e5b96d690d0b6d0d2612afeca0a8698b 100644 (file)
@@ -81,7 +81,7 @@
  */
 #include <limits.h>
 #ifndef PATH_MAX               /* POSIX, but not required   */
-#ifdef _MSC_VER                        /* Microsoft C */
+#if defined(_MSC_VER) || defined(__BORLANDC__)  /* Microsoft C or Borland C*/
 #include <stdlib.h>
 #define PATH_MAX       _MAX_PATH
 #else
@@ -98,7 +98,7 @@
 #define NCPS   80              /* Chars. per symbol (JLH: change from 8) */
 #define        HUGE    1000            /* A huge number */
 #define NERR   3               /* Errors per line */
-#define        NINPUT  PATH_MAX        /* Input buffer size (BH: change from 128) */
+#define        NINPUT  1024            /* Input buffer size (icodes need space) */
 #define NCODE  128             /* Listing code buffer size */
 #define NTITL  64              /* Title buffer size */
 #define        NSBTL   64              /* SubTitle buffer size */