mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
Platform dependent FILENAME_MAX
git-svn-id: svn://svn.cc65.org/cc65/trunk@2952 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
04d2a349af
commit
3266110927
@ -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 */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user