From 34c1564dc44d3bbbb622aa3dd41d75abde308dd4 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Thu, 5 Jan 2023 17:25:25 -0600 Subject: [PATCH] Do not declare gets() in strict C11/C17 modes. The declaration is still included in the default compatibility modes, where __KeepNamespacePure__ is not defined. --- ORCACDefs/stdio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ORCACDefs/stdio.h b/ORCACDefs/stdio.h index 6b54627..f57ce9a 100644 --- a/ORCACDefs/stdio.h +++ b/ORCACDefs/stdio.h @@ -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 *);