From 0a735e0d07509a7266789a132da6ee024ec2f29e Mon Sep 17 00:00:00 2001 From: jb Date: Wed, 26 Mar 2008 23:43:11 +0000 Subject: Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX in sys/syslimits.h). --- include/stdio.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/stdio.h') diff --git a/include/stdio.h b/include/stdio.h index 348db22..2a682b8 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -181,7 +181,9 @@ __END_DECLS * (which could fail). Do not use this for anything. */ /* must be == _POSIX_STREAM_MAX */ +#ifndef FOPEN_MAX #define FOPEN_MAX 20 /* must be <= OPEN_MAX */ +#endif #define FILENAME_MAX 1024 /* must be <= PATH_MAX */ /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ -- cgit v1.1