summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2018-09-08 16:09:53 +0000
committerRobert Mustacchi <rm@joyent.com>2018-09-13 20:50:00 +0000
commitbe4355ddcfa407e2d3e4a06973af5cbef6ccdbae (patch)
treed6ad2a0610e628173d5a36d5022219745d61dc10 /usr/src
parent2eeda98682960c32b47af773fc6db343bb6b588f (diff)
downloadillumos-gate-be4355ddcfa407e2d3e4a06973af5cbef6ccdbae.tar.gz
9812 headers should be free of SUS compiler tyranny
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/sys/feature_tests.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/usr/src/uts/common/sys/feature_tests.h b/usr/src/uts/common/sys/feature_tests.h
index 41c0fb2a4c..9236a398b8 100644
--- a/usr/src/uts/common/sys/feature_tests.h
+++ b/usr/src/uts/common/sys/feature_tests.h
@@ -386,22 +386,6 @@ extern "C" {
#endif
/*
- * It is invalid to compile an XPG3, XPG4, XPG4v2, or XPG5 application
- * using c99. The same is true for POSIX.1-1990, POSIX.2-1992, POSIX.1b,
- * and POSIX.1c applications. Likewise, it is invalid to compile an XPG6
- * or a POSIX.1-2001 application with anything other than a c99 or later
- * compiler. Therefore, we force an error in both cases.
- */
-#if defined(_STDC_C99) && (defined(__XOPEN_OR_POSIX) && !defined(_XPG6))
-#error "Compiler or options invalid for pre-UNIX 03 X/Open applications \
- and pre-2001 POSIX applications"
-#elif !defined(_STDC_C99) && \
- (defined(__XOPEN_OR_POSIX) && defined(_XPG6))
-#error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications \
- require the use of c99"
-#endif
-
-/*
* The following macro defines a value for the ISO C99 restrict
* keyword so that _RESTRICT_KYWD resolves to "restrict" if
* an ISO C99 compiler is used, "__restrict" for c++ and "" (null string)