|
root / base / usr / src / cmd / ast / libast / amd64 / FEATURE / standards
standards Plain Text 46 lines 1.1 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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