feature_test_macros.7: Add _ISOC11_SOURCE to example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-09-20 16:33:02 +02:00
parent be427c35b2
commit 08464979a8
1 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,7 @@
.\" the source, must acknowledge the copyright and authors of this work.
.\" %%%LICENSE_END
.\"
.TH FEATURE_TEST_MACROS 7 2012-08-05 "Linux" "Linux Programmer's Manual"
.TH FEATURE_TEST_MACROS 7 2013-09-20 "Linux" "Linux Programmer's Manual"
.SH NAME
feature_test_macros \- feature test macros
.SH SYNOPSIS
@ -551,6 +551,10 @@ main(int argc, char *argv[])
printf("_ISOC99_SOURCE defined\\n");
#endif
#ifdef _ISOC11_SOURCE
printf("_ISOC11_SOURCE defined\\n");
#endif
#ifdef _XOPEN_SOURCE
printf("_XOPEN_SOURCE defined: %d\\n", _XOPEN_SOURCE);
#endif