From fc2512cfb727d49529d8ed99164db871f4829b73 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Mon, 28 Mar 2016 19:43:25 -0700 Subject: 6951 Initial c11 support 6952 gets should not be visible in C11 6953 add support for c11 threads api 6954 Symbols test should support validating pre-processor symbols Reviewed by: Josef 'Jeff' Sipek Reviewed by: Dan McDonald Reviewed by: Garrett D'Amore Approved by: Garrett D'Amore --- usr/src/head/iso/stdio_iso.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'usr/src/head/iso/stdio_iso.h') diff --git a/usr/src/head/iso/stdio_iso.h b/usr/src/head/iso/stdio_iso.h index d09c982a9c..cea7b1ff6d 100644 --- a/usr/src/head/iso/stdio_iso.h +++ b/usr/src/head/iso/stdio_iso.h @@ -232,7 +232,14 @@ extern int putc(int, FILE *); extern int getchar(void); extern int putchar(int); #endif + +/* + * ISO/IEC C11 removed gets from the standard library. Therefore if a strict C11 + * environment has been requested, we remove it. + */ +#if !defined(_STDC_C11) || defined(__EXTENSIONS__) extern char *gets(char *); +#endif extern int puts(const char *); extern int ungetc(int, FILE *); extern size_t fread(void *_RESTRICT_KYWD, size_t, size_t, -- cgit v1.2.3