2 if tst note{ _ALL_SOURCE & _ISOC99_SOURCE & _POSIX_SOURCE & _POSIX_C_SOURCE & _XOPEN_SOURCE & __EXTENSIONS__ works }end compile{
4 #define _ISOC99_SOURCE 1
5 #define _POSIX_SOURCE 1
6 #define _POSIX_C_SOURCE 21000101L
7 #define _XOPEN_SOURCE 9900
9 #define __EXTENSIONS__ 1
10 #include <sys/types.h>
18 #ifndef _ISOC99_SOURCE
19 #define _ISOC99_SOURCE 1
22 #define _POSIX_SOURCE 1
24 #ifndef _POSIX_C_SOURCE
25 #define _POSIX_C_SOURCE 21000101L
28 #define _XOPEN_SOURCE 9900
33 #ifndef __EXTENSIONS__
34 #define __EXTENSIONS__ 1
37 elif tst note{ _ALL_SOURCE & _ISOC99_SOURCE & _POSIX_SOURCE & _XOPEN_SOURCE & __EXTENSIONS__ works }end compile{
39 #define _ISOC99_SOURCE 1
40 #define _POSIX_SOURCE 1
41 #define _XOPEN_SOURCE 9900
43 #define __EXTENSIONS__ 1
44 #include <sys/types.h>
52 #ifndef _ISOC99_SOURCE
53 #define _ISOC99_SOURCE 1
56 #define _POSIX_SOURCE 1
59 #define _XOPEN_SOURCE 9900
64 #ifndef __EXTENSIONS__
65 #define __EXTENSIONS__ 1
68 elif tst note{ _ISOC99_SOURCE & _POSIX_SOURCE & _POSIX_C_SOURCE & _XOPEN_SOURCE & __EXTENSIONS__ works }end compile{
69 #define _ISOC99_SOURCE 1
70 #define _POSIX_SOURCE 1
71 #define _POSIX_C_SOURCE 21000101L
72 #define _XOPEN_SOURCE 9900
74 #define __EXTENSIONS__ 1
75 #include <sys/types.h>
80 #ifndef _ISOC99_SOURCE
81 #define _ISOC99_SOURCE 1
84 #define _POSIX_SOURCE 1
86 #ifndef _POSIX_C_SOURCE
87 #define _POSIX_C_SOURCE 21000101L
90 #define _XOPEN_SOURCE 9900
95 #ifndef __EXTENSIONS__
96 #define __EXTENSIONS__ 1
99 elif tst note{ _POSIX_SOURCE & _XOPEN_SOURCE & __EXTENSIONS__ works }end compile{
100 #define _POSIX_SOURCE 1
101 #define _XOPEN_SOURCE 1
102 #define __EXTENSIONS__ 1
103 #include <sys/types.h>
104 #include <sys/stat.h>
108 #ifndef _POSIX_SOURCE
109 #define _POSIX_SOURCE 1
111 #ifndef _XOPEN_SOURCE
112 #define _XOPEN_SOURCE 1
114 #ifndef __EXTENSIONS__
115 #define __EXTENSIONS__ 1
118 elif tst note{ _XOPEN_SOURCE & __EXTENSIONS__ works }end compile{
119 #define _XOPEN_SOURCE 1
120 #define __EXTENSIONS__ 1
121 #include <sys/types.h>
122 #include <sys/stat.h>
126 #ifndef _XOPEN_SOURCE
127 #define _XOPEN_SOURCE 1
129 #ifndef __EXTENSIONS__
130 #define __EXTENSIONS__ 1
133 elif tst note{ _XOPEN_SOURCE works }end compile{
134 #define _XOPEN_SOURCE 1
135 #include <sys/types.h>
136 #include <sys/stat.h>
140 #ifndef _XOPEN_SOURCE
141 #define _XOPEN_SOURCE 1
144 else tst note{ __EXTENSIONS__ works }end compile{
145 #define __EXTENSIONS__ 1
146 #include <sys/types.h>
147 #include <sys/stat.h>
149 #ifndef __EXTENSIONS__
150 #define __EXTENSIONS__ 1