linux: Introduce INTERNAL_VSYSCALL
[glibc.git] / include / features.h
blobd92503dfed25d3364335accb3da68a5a13fb22ac
1 /* Copyright (C) 1991-2024 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <https://www.gnu.org/licenses/>. */
18 #ifndef _FEATURES_H
19 #define _FEATURES_H 1
21 /* These are defined by the user (or the compiler)
22 to specify the desired environment:
24 __STRICT_ANSI__ ISO Standard C.
25 _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
26 _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
27 _ISOC23_SOURCE Extensions to ISO C99 from ISO C23.
28 _ISOC2X_SOURCE Old name for _ISOC23_SOURCE.
29 __STDC_WANT_LIB_EXT2__
30 Extensions to ISO C99 from TR 27431-2:2010.
31 __STDC_WANT_IEC_60559_BFP_EXT__
32 Extensions to ISO C11 from TS 18661-1:2014.
33 __STDC_WANT_IEC_60559_FUNCS_EXT__
34 Extensions to ISO C11 from TS 18661-4:2015.
35 __STDC_WANT_IEC_60559_TYPES_EXT__
36 Extensions to ISO C11 from TS 18661-3:2015.
37 __STDC_WANT_IEC_60559_EXT__
38 ISO C23 interfaces defined only in Annex F.
40 _POSIX_SOURCE IEEE Std 1003.1.
41 _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
42 if >=199309L, add IEEE Std 1003.1b-1993;
43 if >=199506L, add IEEE Std 1003.1c-1995;
44 if >=200112L, all of IEEE 1003.1-2004
45 if >=200809L, all of IEEE 1003.1-2008
46 _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
47 Single Unix conformance is wanted, to 600 for the
48 sixth revision, to 700 for the seventh revision.
49 _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
50 _LARGEFILE_SOURCE Some more functions for correct standard I/O.
51 _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
52 _FILE_OFFSET_BITS=N Select default filesystem interface.
53 _ATFILE_SOURCE Additional *at interfaces.
54 _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant)
55 MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
56 _GNU_SOURCE All of the above, plus GNU extensions.
57 _DEFAULT_SOURCE The default set of features (taking precedence over
58 __STRICT_ANSI__).
60 _FORTIFY_SOURCE Add security hardening to many library functions.
61 Set to 1, 2 or 3; 3 performs stricter checks than 2, which
62 performs stricter checks than 1.
64 _REENTRANT, _THREAD_SAFE
65 Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
67 The `-ansi' switch to the GNU C compiler, and standards conformance
68 options such as `-std=c99', define __STRICT_ANSI__. If none of
69 these are defined, or if _DEFAULT_SOURCE is defined, the default is
70 to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
71 200809L, as well as enabling miscellaneous functions from BSD and
72 SVID. If more than one of these are defined, they accumulate. For
73 example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
74 give you ISO C, 1003.1, and 1003.2, but nothing else.
76 These are defined by this file and are used by the
77 header files to decide what to declare or define:
79 __GLIBC_USE (F) Define things from feature set F. This is defined
80 to 1 or 0; the subsequent macros are either defined
81 or undefined, and those tests should be moved to
82 __GLIBC_USE.
83 __USE_ISOC11 Define ISO C11 things.
84 __USE_ISOC99 Define ISO C99 things.
85 __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
86 __USE_ISOCXX11 Define ISO C++11 things.
87 __USE_POSIX Define IEEE Std 1003.1 things.
88 __USE_POSIX2 Define IEEE Std 1003.2 things.
89 __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
90 __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
91 __USE_XOPEN Define XPG things.
92 __USE_XOPEN_EXTENDED Define X/Open Unix things.
93 __USE_UNIX98 Define Single Unix V2 things.
94 __USE_XOPEN2K Define XPG6 things.
95 __USE_XOPEN2KXSI Define XPG6 XSI things.
96 __USE_XOPEN2K8 Define XPG7 things.
97 __USE_XOPEN2K8XSI Define XPG7 XSI things.
98 __USE_LARGEFILE Define correct standard I/O things.
99 __USE_LARGEFILE64 Define LFS things with separate names.
100 __USE_FILE_OFFSET64 Define 64bit interface as default.
101 __USE_MISC Define things from 4.3BSD or System V Unix.
102 __USE_ATFILE Define *at interfaces and AT_* constants for them.
103 __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant)
104 MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
105 __USE_GNU Define GNU extensions.
106 __USE_FORTIFY_LEVEL Additional security measures used, according to level.
108 The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
109 defined by this file unconditionally. `__GNU_LIBRARY__' is provided
110 only for compatibility. All new code should use the other symbols
111 to test for features.
113 All macros listed above as possibly being defined by this file are
114 explicitly undefined if they are not explicitly defined.
115 Feature-test macros that are not defined by the user or compiler
116 but are implied by the other feature-test macros defined (or by the
117 lack of any definitions) are defined by the file.
119 ISO C feature test macros depend on the definition of the macro
120 when an affected header is included, not when the first system
121 header is included, and so they are handled in
122 <bits/libc-header-start.h>, which does not have a multiple include
123 guard. Feature test macros that can be handled from the first
124 system header included are handled here. */
127 /* Undefine everything, so we get a clean slate. */
128 #undef __USE_ISOC11
129 #undef __USE_ISOC99
130 #undef __USE_ISOC95
131 #undef __USE_ISOCXX11
132 #undef __USE_POSIX
133 #undef __USE_POSIX2
134 #undef __USE_POSIX199309
135 #undef __USE_POSIX199506
136 #undef __USE_XOPEN
137 #undef __USE_XOPEN_EXTENDED
138 #undef __USE_UNIX98
139 #undef __USE_XOPEN2K
140 #undef __USE_XOPEN2KXSI
141 #undef __USE_XOPEN2K8
142 #undef __USE_XOPEN2K8XSI
143 #undef __USE_LARGEFILE
144 #undef __USE_LARGEFILE64
145 #undef __USE_FILE_OFFSET64
146 #undef __USE_MISC
147 #undef __USE_ATFILE
148 #undef __USE_DYNAMIC_STACK_SIZE
149 #undef __USE_GNU
150 #undef __USE_FORTIFY_LEVEL
151 #undef __KERNEL_STRICT_NAMES
152 #undef __GLIBC_USE_ISOC23
153 #undef __GLIBC_USE_DEPRECATED_GETS
154 #undef __GLIBC_USE_DEPRECATED_SCANF
155 #undef __GLIBC_USE_C23_STRTOL
157 /* Suppress kernel-name space pollution unless user expressedly asks
158 for it. */
159 #ifndef _LOOSE_KERNEL_NAMES
160 # define __KERNEL_STRICT_NAMES
161 #endif
163 /* Convenience macro to test the version of gcc.
164 Use like this:
165 #if __GNUC_PREREQ (2,8)
166 ... code requiring gcc 2.8 or later ...
167 #endif
168 Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
169 added in 2.0. */
170 #if defined __GNUC__ && defined __GNUC_MINOR__
171 # define __GNUC_PREREQ(maj, min) \
172 ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
173 #else
174 # define __GNUC_PREREQ(maj, min) 0
175 #endif
177 /* Similarly for clang. Features added to GCC after version 4.2 may
178 or may not also be available in clang, and clang's definitions of
179 __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
180 features can be queried via __has_extension/__has_feature. */
181 #if defined __clang_major__ && defined __clang_minor__
182 # define __glibc_clang_prereq(maj, min) \
183 ((__clang_major__ << 16) + __clang_minor__ >= ((maj) << 16) + (min))
184 #else
185 # define __glibc_clang_prereq(maj, min) 0
186 #endif
188 /* Whether to use feature set F. */
189 #define __GLIBC_USE(F) __GLIBC_USE_ ## F
191 /* _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
192 _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
193 issue a warning; the expectation is that the source is being
194 transitioned to use the new macro. */
195 #if (defined _BSD_SOURCE || defined _SVID_SOURCE) \
196 && !defined _DEFAULT_SOURCE
197 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
198 # undef _DEFAULT_SOURCE
199 # define _DEFAULT_SOURCE 1
200 #endif
202 /* Remap the old name _ISOC2X_SOURCE to _ISOC23_SOURCE. */
203 #ifdef _ISOC2X_SOURCE
204 # undef _ISOC2X_SOURCE
205 # undef _ISOC23_SOURCE
206 # define _ISOC23_SOURCE 1
207 #endif
209 /* If _GNU_SOURCE was defined by the user, turn on all the other features. */
210 #ifdef _GNU_SOURCE
211 # undef _ISOC95_SOURCE
212 # define _ISOC95_SOURCE 1
213 # undef _ISOC99_SOURCE
214 # define _ISOC99_SOURCE 1
215 # undef _ISOC11_SOURCE
216 # define _ISOC11_SOURCE 1
217 # undef _ISOC23_SOURCE
218 # define _ISOC23_SOURCE 1
219 # undef _POSIX_SOURCE
220 # define _POSIX_SOURCE 1
221 # undef _POSIX_C_SOURCE
222 # define _POSIX_C_SOURCE 200809L
223 # undef _XOPEN_SOURCE
224 # define _XOPEN_SOURCE 700
225 # undef _XOPEN_SOURCE_EXTENDED
226 # define _XOPEN_SOURCE_EXTENDED 1
227 # undef _LARGEFILE64_SOURCE
228 # define _LARGEFILE64_SOURCE 1
229 # undef _DEFAULT_SOURCE
230 # define _DEFAULT_SOURCE 1
231 # undef _ATFILE_SOURCE
232 # define _ATFILE_SOURCE 1
233 # undef _DYNAMIC_STACK_SIZE_SOURCE
234 # define _DYNAMIC_STACK_SIZE_SOURCE 1
235 #endif
237 /* If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
238 define _DEFAULT_SOURCE. */
239 #if (defined _DEFAULT_SOURCE \
240 || (!defined __STRICT_ANSI__ \
241 && !defined _ISOC99_SOURCE && !defined _ISOC11_SOURCE \
242 && !defined _ISOC23_SOURCE \
243 && !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE \
244 && !defined _XOPEN_SOURCE))
245 # undef _DEFAULT_SOURCE
246 # define _DEFAULT_SOURCE 1
247 #endif
249 /* This is to enable the ISO C23 extension. */
250 #if (defined _ISOC23_SOURCE \
251 || (defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L))
252 # define __GLIBC_USE_ISOC23 1
253 #else
254 # define __GLIBC_USE_ISOC23 0
255 #endif
257 /* This is to enable the ISO C11 extension. */
258 #if (defined _ISOC11_SOURCE || defined _ISOC23_SOURCE \
259 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L))
260 # define __USE_ISOC11 1
261 #endif
263 /* This is to enable the ISO C99 extension. */
264 #if (defined _ISOC99_SOURCE || defined _ISOC11_SOURCE \
265 || defined _ISOC23_SOURCE \
266 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L))
267 # define __USE_ISOC99 1
268 #endif
270 /* This is to enable the ISO C90 Amendment 1:1995 extension. */
271 #if (defined _ISOC99_SOURCE || defined _ISOC11_SOURCE \
272 || defined _ISOC23_SOURCE \
273 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199409L))
274 # define __USE_ISOC95 1
275 #endif
277 #ifdef __cplusplus
278 /* This is to enable compatibility for ISO C++17. */
279 # if __cplusplus >= 201703L
280 # define __USE_ISOC11 1
281 # endif
282 /* This is to enable compatibility for ISO C++11.
283 Check the temporary macro for now, too. */
284 # if __cplusplus >= 201103L || defined __GXX_EXPERIMENTAL_CXX0X__
285 # define __USE_ISOCXX11 1
286 # define __USE_ISOC99 1
287 # endif
288 #endif
290 /* If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
291 is defined, use POSIX.1-2008 (or another version depending on
292 _XOPEN_SOURCE). */
293 #ifdef _DEFAULT_SOURCE
294 # if !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE
295 # define __USE_POSIX_IMPLICITLY 1
296 # endif
297 # undef _POSIX_SOURCE
298 # define _POSIX_SOURCE 1
299 # undef _POSIX_C_SOURCE
300 # define _POSIX_C_SOURCE 200809L
301 #endif
303 #if ((!defined __STRICT_ANSI__ \
304 || (defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >= 500)) \
305 && !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE)
306 # define _POSIX_SOURCE 1
307 # if defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 500
308 # define _POSIX_C_SOURCE 2
309 # elif defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 600
310 # define _POSIX_C_SOURCE 199506L
311 # elif defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 700
312 # define _POSIX_C_SOURCE 200112L
313 # else
314 # define _POSIX_C_SOURCE 200809L
315 # endif
316 # define __USE_POSIX_IMPLICITLY 1
317 #endif
319 /* Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
320 defined in all multithreaded code. GNU libc has not required this
321 for many years. We now treat them as compatibility synonyms for
322 _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
323 comprehensive support for multithreaded code. Using them never
324 lowers the selected level of POSIX conformance, only raises it. */
325 #if ((!defined _POSIX_C_SOURCE || (_POSIX_C_SOURCE - 0) < 199506L) \
326 && (defined _REENTRANT || defined _THREAD_SAFE))
327 # define _POSIX_SOURCE 1
328 # undef _POSIX_C_SOURCE
329 # define _POSIX_C_SOURCE 199506L
330 #endif
332 #if (defined _POSIX_SOURCE \
333 || (defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1) \
334 || defined _XOPEN_SOURCE)
335 # define __USE_POSIX 1
336 #endif
338 #if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 2 || defined _XOPEN_SOURCE
339 # define __USE_POSIX2 1
340 #endif
342 #if defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L
343 # define __USE_POSIX199309 1
344 #endif
346 #if defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L
347 # define __USE_POSIX199506 1
348 #endif
350 #if defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L
351 # define __USE_XOPEN2K 1
352 # undef __USE_ISOC95
353 # define __USE_ISOC95 1
354 # undef __USE_ISOC99
355 # define __USE_ISOC99 1
356 #endif
358 #if defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L
359 # define __USE_XOPEN2K8 1
360 # undef _ATFILE_SOURCE
361 # define _ATFILE_SOURCE 1
362 #endif
364 #ifdef _XOPEN_SOURCE
365 # define __USE_XOPEN 1
366 # if (_XOPEN_SOURCE - 0) >= 500
367 # define __USE_XOPEN_EXTENDED 1
368 # define __USE_UNIX98 1
369 # undef _LARGEFILE_SOURCE
370 # define _LARGEFILE_SOURCE 1
371 # if (_XOPEN_SOURCE - 0) >= 600
372 # if (_XOPEN_SOURCE - 0) >= 700
373 # define __USE_XOPEN2K8 1
374 # define __USE_XOPEN2K8XSI 1
375 # endif
376 # define __USE_XOPEN2K 1
377 # define __USE_XOPEN2KXSI 1
378 # undef __USE_ISOC95
379 # define __USE_ISOC95 1
380 # undef __USE_ISOC99
381 # define __USE_ISOC99 1
382 # endif
383 # else
384 # ifdef _XOPEN_SOURCE_EXTENDED
385 # define __USE_XOPEN_EXTENDED 1
386 # endif
387 # endif
388 #endif
390 #ifdef _LARGEFILE_SOURCE
391 # define __USE_LARGEFILE 1
392 #endif
394 #ifdef _LARGEFILE64_SOURCE
395 # define __USE_LARGEFILE64 1
396 #endif
398 #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
399 # define __USE_FILE_OFFSET64 1
400 #endif
402 #include <features-time64.h>
404 #if defined _DEFAULT_SOURCE
405 # define __USE_MISC 1
406 #endif
408 #ifdef _ATFILE_SOURCE
409 # define __USE_ATFILE 1
410 #endif
412 #ifdef _DYNAMIC_STACK_SIZE_SOURCE
413 # define __USE_DYNAMIC_STACK_SIZE 1
414 #endif
416 #ifdef _GNU_SOURCE
417 # define __USE_GNU 1
418 #endif
420 #if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0
421 # if !defined __OPTIMIZE__ || __OPTIMIZE__ <= 0
422 # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
423 # elif !__GNUC_PREREQ (4, 1)
424 # warning _FORTIFY_SOURCE requires GCC 4.1 or later
425 # elif _FORTIFY_SOURCE > 2 && (__glibc_clang_prereq (9, 0) \
426 || __GNUC_PREREQ (12, 0))
428 # if _FORTIFY_SOURCE > 3
429 # warning _FORTIFY_SOURCE > 3 is treated like 3 on this platform
430 # endif
431 # define __USE_FORTIFY_LEVEL 3
432 # elif _FORTIFY_SOURCE > 1
433 # if _FORTIFY_SOURCE > 2
434 # warning _FORTIFY_SOURCE > 2 is treated like 2 on this platform
435 # endif
436 # define __USE_FORTIFY_LEVEL 2
437 # else
438 # define __USE_FORTIFY_LEVEL 1
439 # endif
440 #endif
441 #ifndef __USE_FORTIFY_LEVEL
442 # define __USE_FORTIFY_LEVEL 0
443 #endif
445 /* The function 'gets' existed in C89, but is impossible to use
446 safely. It has been removed from ISO C11 and ISO C++14. Note: for
447 compatibility with various implementations of <cstdio>, this test
448 must consider only the value of __cplusplus when compiling C++. */
449 #if defined __cplusplus ? __cplusplus >= 201402L : defined __USE_ISOC11
450 # define __GLIBC_USE_DEPRECATED_GETS 0
451 #else
452 # define __GLIBC_USE_DEPRECATED_GETS 1
453 #endif
455 /* GNU formerly extended the scanf functions with modified format
456 specifiers %as, %aS, and %a[...] that allocate a buffer for the
457 input using malloc. This extension conflicts with ISO C99, which
458 defines %a as a standalone format specifier that reads a floating-
459 point number; moreover, POSIX.1-2008 provides the same feature
460 using the modifier letter 'm' instead (%ms, %mS, %m[...]).
462 We now follow C99 unless GNU extensions are active and the compiler
463 is specifically in C89 or C++98 mode (strict or not). For
464 instance, with GCC, -std=gnu11 will have C99-compliant scanf with
465 or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
466 old extension. */
467 #if (defined __USE_GNU \
468 && (defined __cplusplus \
469 ? (__cplusplus < 201103L && !defined __GXX_EXPERIMENTAL_CXX0X__) \
470 : (!defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L)))
471 # define __GLIBC_USE_DEPRECATED_SCANF 1
472 #else
473 # define __GLIBC_USE_DEPRECATED_SCANF 0
474 #endif
476 /* ISO C23 added support for a 0b or 0B prefix on binary constants as
477 inputs to strtol-family functions (base 0 or 2). This macro is
478 used to condition redirection in headers to allow that redirection
479 to be disabled when building those functions, despite _GNU_SOURCE
480 being defined. */
481 #if __GLIBC_USE (ISOC23)
482 # define __GLIBC_USE_C23_STRTOL 1
483 #else
484 # define __GLIBC_USE_C23_STRTOL 0
485 #endif
487 /* Get definitions of __STDC_* predefined macros, if the compiler has
488 not preincluded this header automatically. */
489 #include <stdc-predef.h>
491 /* This macro indicates that the installed library is the GNU C Library.
492 For historic reasons the value now is 6 and this will stay from now
493 on. The use of this variable is deprecated. Use __GLIBC__ and
494 __GLIBC_MINOR__ now (see below) when you want to test for a specific
495 GNU C library version and use the values in <gnu/lib-names.h> to get
496 the sonames of the shared libraries. */
497 #undef __GNU_LIBRARY__
498 #define __GNU_LIBRARY__ 6
500 /* Major and minor version number of the GNU C library package. Use
501 these macros to test for features in specific releases. */
502 #define __GLIBC__ 2
503 #define __GLIBC_MINOR__ 39
505 #define __GLIBC_PREREQ(maj, min) \
506 ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
508 /* This is here only because every header file already includes this one. */
509 #ifndef __ASSEMBLER__
510 # ifndef _SYS_CDEFS_H
511 # include <sys/cdefs.h>
512 # endif
514 /* If we don't have __REDIRECT, prototypes will be missing if
515 __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. */
516 # if defined __USE_FILE_OFFSET64 && !defined __REDIRECT
517 # define __USE_LARGEFILE 1
518 # define __USE_LARGEFILE64 1
519 # endif
521 #endif /* !ASSEMBLER */
523 /* Decide whether we can define 'extern inline' functions in headers. */
524 #if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \
525 && !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__ \
526 && defined __extern_inline
527 # define __USE_EXTERN_INLINES 1
528 #endif
531 /* This is here only because every header file already includes this one.
532 Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
533 <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
534 that will always return failure (and set errno to ENOSYS). */
535 #include <gnu/stubs.h>
538 #endif /* features.h */