diff options
author | Robert Mustacchi <rm@joyent.com> | 2016-03-28 19:43:25 -0700 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2016-05-19 07:45:52 -0700 |
commit | fc2512cfb727d49529d8ed99164db871f4829b73 (patch) | |
tree | 89ea56b5a9833e92795bf45c723c6de65b7490f2 /usr/src/head/iso/stdio_iso.h | |
parent | ea4a67f462de0a39a9adea8197bcdef849de5371 (diff) | |
download | illumos-joyent-fc2512cfb727d49529d8ed99164db871f4829b73.tar.gz |
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 <jeffpc@josefsipek.net>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/head/iso/stdio_iso.h')
-rw-r--r-- | usr/src/head/iso/stdio_iso.h | 7 |
1 files changed, 7 insertions, 0 deletions
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, |