mirror of https://github.com/mkerrisk/man-pages
feature_test_macros.7: Document _DEFAULT_SOURCE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
0385c88eda
commit
ba694dd0b0
|
@ -281,6 +281,19 @@ System V-derived definitions.
|
|||
(SVID == System V Interface Definition; see
|
||||
.BR standards (7).)
|
||||
.TP
|
||||
.BR _DEFAULT_SOURCE " (since glibc 2.19)"
|
||||
Defining this macro provides an effect similar to
|
||||
the feature test macros that are defined by default; that is:
|
||||
|
||||
cc \-D_BSD_SOURCE \-D_SVID_SOURCE \-D_POSIX_C_SOURCE=200809
|
||||
|
||||
This macro can be defined to ensure that the "default"
|
||||
definitions are provided even when the defaults would otherwise
|
||||
be disabled,
|
||||
as happens when individual macros are explicitly defined,
|
||||
or the compiler is invoked in one of its "standard" modes (e.g.,
|
||||
.IR "cc\ \-std=c99" ).
|
||||
.TP
|
||||
.BR _ATFILE_SOURCE " (since glibc 2.4)"
|
||||
Defining this macro with any value causes header files to expose
|
||||
declarations of a range of functions with the suffix "at";
|
||||
|
|
Loading…
Reference in New Issue