From: cuz Date: Sun, 21 Mar 2004 22:10:42 +0000 (+0000) Subject: Platform dependent FILENAME_MAX X-Git-Tag: V2.12.0~873 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3266110927c3964ab690336f837c56baf1979d52;p=cc65 Platform dependent FILENAME_MAX git-svn-id: svn://svn.cc65.org/cc65/trunk@2952 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/stdio.h b/include/stdio.h index 9337cf7f0..6f3021467 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998-2002 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 1998-2004 Ullrich von Bassewitz */ +/* Römerstraße 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -62,14 +62,22 @@ extern FILE* stderr; #define _IONBF 2 #define BUFSIZ 256 #define EOF -1 -#define FILENAME_MAX 16 #define FOPEN_MAX 8 -#define L_tmpnam (FILENAME_MAX + 1) #define SEEK_CUR 0 #define SEEK_END 1 #define SEEK_SET 2 #define TMP_MAX 256 +/* Standard defines that are platform dependent */ +#if defined(__ATARI__) +# define FILENAME_MAX 12 +#elif defined(__LUNIX__) +# define FILENAME_MAX 80 +#else +# define FILENAME_MAX 16 +#endif +#define L_tmpnam (FILENAME_MAX + 1) + /*****************************************************************************/ @@ -143,4 +151,4 @@ void __fastcall__ _poserror (const char* msg); /* cc65 */ - +