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. */