xref: /netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/linux/config.d (revision 0a3071956a3a9fdebdbf7f338cf2d439b45fc728)
1 /**
2  * D header file for GNU/Linux
3  *
4  * Authors: Martin Nowak
5  */
6 module core.sys.linux.config;
7 
8 version (linux):
9 
10 public import core.sys.posix.config;
11 
12 // man 7 feature_test_macros
13 // http://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
14 enum _GNU_SOURCE = true;
15 // deduced <features.h>
16 // http://sourceware.org/git/?p=glibc.git;a=blob;f=include/features.h
17 enum _DEFAULT_SOURCE = true;
18 enum _ATFILE_SOURCE = true;
19 
20 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for _DEFAULT_SOURCE.
21 deprecated("use _DEFAULT_SOURCE")
22 {
23     enum _BSD_SOURCE = true;
24     enum _SVID_SOURCE = true;
25 }
26 
27 deprecated("use _DEFAULT_SOURCE")
28 enum __USE_MISC = _DEFAULT_SOURCE;
29 deprecated("use _ATFILE_SOURCE")
30 enum __USE_ATFILE = _ATFILE_SOURCE;
31 deprecated("use _GNU_SOURCE")
32 enum __USE_GNU = _GNU_SOURCE;
33