summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ast/libast/amd64/FEATURE/standards
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ast/libast/amd64/FEATURE/standards')
-rw-r--r--usr/src/cmd/ast/libast/amd64/FEATURE/standards45
1 files changed, 45 insertions, 0 deletions
diff --git a/usr/src/cmd/ast/libast/amd64/FEATURE/standards b/usr/src/cmd/ast/libast/amd64/FEATURE/standards
new file mode 100644
index 0000000000..059f99e5bd
--- /dev/null
+++ b/usr/src/cmd/ast/libast/amd64/FEATURE/standards
@@ -0,0 +1,45 @@
+/* : : generated from contrib/ast/src/lib/libast/features/standards by iffe version 2012-07-17 : : */
+#ifndef _def_standards_ast
+#define _def_standards_ast 1
+#define _sys_types 1 /* #include <sys/types.h> ok */
+/* _ALL_SOURCE & _POSIX_SOURCE & _POSIX_C_SOURCE & _XOPEN_SOURCE & __EXTENSIONS__ works */
+#ifndef _ALL_SOURCE
+#define _ALL_SOURCE 1
+#endif
+#ifndef _POSIX_SOURCE
+#define _POSIX_SOURCE 1
+#endif
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 21000101L
+#endif
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 9900
+#endif
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+#ifndef __EXTENSIONS__
+#define __EXTENSIONS__ 1
+#endif
+
+#define _LIB_m 1 /* -lm is a library */
+/* _ISOC99_SOURCE plays nice */
+#ifndef _ISOC99_SOURCE
+#define _ISOC99_SOURCE 1
+#endif
+
+
+/*
+* this is a nasty game we all play to honor standards symbol visibility
+* it would help if all implementations had
+* _KITCHEN_SINK_SOURCE
+* that enabled all symbols from the latest implemented standards
+* that's probably the most useful but least portable request
+*/
+
+#if __MACH__
+#undef _POSIX_SOURCE
+#endif
+
+
+#endif