summaryrefslogtreecommitdiff
path: root/usr/src/head/iso/stdio_iso.h
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2016-03-28 19:43:25 -0700
committerRobert Mustacchi <rm@joyent.com>2016-05-19 07:45:52 -0700
commitfc2512cfb727d49529d8ed99164db871f4829b73 (patch)
tree89ea56b5a9833e92795bf45c723c6de65b7490f2 /usr/src/head/iso/stdio_iso.h
parentea4a67f462de0a39a9adea8197bcdef849de5371 (diff)
downloadillumos-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.h7
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,