From 2c2f4a605d5ce7bb3bec57e1de85dd230b0be976 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Wed, 26 Mar 2008 23:43:11 +0000 Subject: [PATCH] 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(+) diff --git a/include/stdio.h b/include/stdio.h index 348db22e181..2a682b81b51 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. */