Do not declare gets() in strict C11/C17 modes.

The declaration is still included in the default compatibility modes, where __KeepNamespacePure__ is not defined.
This commit is contained in:
Stephen Heumann 2023-01-05 17:25:25 -06:00
parent 245dd0a3f4
commit 34c1564dc4
1 changed files with 2 additions and 0 deletions

View File

@ -128,7 +128,9 @@ long int ftell(FILE *);
size_t fwrite(const void *, size_t, size_t, FILE *);
int getc(FILE *);
int getchar(void);
#if !defined(__KeepNamespacePure__) || __STDC_VERSION__ < 201112L
char *gets(char *);
#endif
void perror(const char *);
int printf(const char *, ...);
int putc(int, FILE *);