1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-15 11:05:56 +00:00

Fixed FILENAME_MAX

git-svn-id: svn://svn.cc65.org/cc65/trunk@3469 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-04-19 13:15:52 +00:00
parent 977cb3d900
commit 6448e4cf51
2 changed files with 10 additions and 10 deletions

View File

@ -42,15 +42,15 @@ _IONBF = 2
BUFSIZ = 256
EOF = -1
.if .defined(__APPLE2__) .or .defined(__APPLE2ENH__)
FILENAME_MAX = 64
FILENAME_MAX = 64+1
.elseif .defined(__ATARI__)
FILENAME_MAX = 12
FILENAME_MAX = 12+1
.elseif .defined(__LUNIX__)
FILENAME_MAX = 80
FILENAME_MAX = 80+1
.else
FILENAME_MAX = 16
FILENAME_MAX = 16+1
.endif
L_tmpnam = (FILENAME_MAX + 1)
L_tmpnam = FILENAME_MAX
SEEK_CUR = 0
SEEK_END = 1
SEEK_SET = 2

View File

@ -70,15 +70,15 @@ extern FILE* stderr;
/* Standard defines that are platform dependent */
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
# define FILENAME_MAX 64
# define FILENAME_MAX (64+1)
#elif defined(__ATARI__)
# define FILENAME_MAX 12
# define FILENAME_MAX (12+1)
#elif defined(__LUNIX__)
# define FILENAME_MAX 80
# define FILENAME_MAX (80+1)
#else
# define FILENAME_MAX 16
# define FILENAME_MAX (16+1)
#endif
#define L_tmpnam (FILENAME_MAX + 1)
#define L_tmpnam FILENAME_MAX