The feature_test_macro(7) page adds information on the changes that glibc 2.10 makes for alignment with POSIX.1-2008, and adds an example program that can be used to display the feature test macros that are implicitly defined by particular glibc versions and as a consequence of explicitly setting macros.