xref: /titanic_51/usr/src/cmd/ast/libast/sparcv9/FEATURE/standards (revision b4dd7d09880f14016feece03929a224eca1cf39a)
1*b4dd7d09SAndy Fiddaman/* : : generated from contrib/ast/src/lib/libast/features/standards by iffe version 2012-07-17 : : */
2*b4dd7d09SAndy Fiddaman#ifndef _def_standards_ast
3*b4dd7d09SAndy Fiddaman#define _def_standards_ast	1
4*b4dd7d09SAndy Fiddaman#define _sys_types	1	/* #include <sys/types.h> ok */
5*b4dd7d09SAndy Fiddaman/* _ALL_SOURCE & _POSIX_SOURCE & _POSIX_C_SOURCE & _XOPEN_SOURCE & __EXTENSIONS__ works */
6*b4dd7d09SAndy Fiddaman#ifndef _ALL_SOURCE
7*b4dd7d09SAndy Fiddaman#define _ALL_SOURCE	1
8*b4dd7d09SAndy Fiddaman#endif
9*b4dd7d09SAndy Fiddaman#ifndef _POSIX_SOURCE
10*b4dd7d09SAndy Fiddaman#define _POSIX_SOURCE	1
11*b4dd7d09SAndy Fiddaman#endif
12*b4dd7d09SAndy Fiddaman#ifndef _POSIX_C_SOURCE
13*b4dd7d09SAndy Fiddaman#define _POSIX_C_SOURCE	21000101L
14*b4dd7d09SAndy Fiddaman#endif
15*b4dd7d09SAndy Fiddaman#ifndef _XOPEN_SOURCE
16*b4dd7d09SAndy Fiddaman#define _XOPEN_SOURCE	9900
17*b4dd7d09SAndy Fiddaman#endif
18*b4dd7d09SAndy Fiddaman#ifndef _GNU_SOURCE
19*b4dd7d09SAndy Fiddaman#define _GNU_SOURCE	1
20*b4dd7d09SAndy Fiddaman#endif
21*b4dd7d09SAndy Fiddaman#ifndef __EXTENSIONS__
22*b4dd7d09SAndy Fiddaman#define __EXTENSIONS__	1
23*b4dd7d09SAndy Fiddaman#endif
24*b4dd7d09SAndy Fiddaman
25*b4dd7d09SAndy Fiddaman#define _LIB_m	1	/* -lm is a library */
26*b4dd7d09SAndy Fiddaman/* _ISOC99_SOURCE plays nice */
27*b4dd7d09SAndy Fiddaman#ifndef _ISOC99_SOURCE
28*b4dd7d09SAndy Fiddaman#define _ISOC99_SOURCE	1
29*b4dd7d09SAndy Fiddaman#endif
30*b4dd7d09SAndy Fiddaman
31*b4dd7d09SAndy Fiddaman
32*b4dd7d09SAndy Fiddaman/*
33*b4dd7d09SAndy Fiddaman* this is a nasty game we all play to honor standards symbol visibility
34*b4dd7d09SAndy Fiddaman* it would help if all implementations had
35*b4dd7d09SAndy Fiddaman*	_KITCHEN_SINK_SOURCE
36*b4dd7d09SAndy Fiddaman* that enabled all symbols from the latest implemented standards
37*b4dd7d09SAndy Fiddaman* that's probably the most useful but least portable request
38*b4dd7d09SAndy Fiddaman*/
39*b4dd7d09SAndy Fiddaman
40*b4dd7d09SAndy Fiddaman#if __MACH__
41*b4dd7d09SAndy Fiddaman#undef  _POSIX_SOURCE
42*b4dd7d09SAndy Fiddaman#endif
43*b4dd7d09SAndy Fiddaman
44*b4dd7d09SAndy Fiddaman
45*b4dd7d09SAndy Fiddaman#endif
46