diff options
author | Roland McGrath <roland@gnu.org> | 1996-05-27 02:18:37 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-05-27 02:18:37 +0000 |
commit | 5f160cde271e86c7eec9ec4f2620e376d86eda52 (patch) | |
tree | 581d9a96a5ce3bb98cbb5e5f1af3a9abb51fec91 /features.h | |
parent | e463fcfba161d06d8dfc01111cf6e4aca4065bd3 (diff) | |
download | glibc-5f160cde271e86c7eec9ec4f2620e376d86eda52.zip glibc-5f160cde271e86c7eec9ec4f2620e376d86eda52.tar.gz glibc-5f160cde271e86c7eec9ec4f2620e376d86eda52.tar.bz2 |
* features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,cvs/libc-960527
_POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
Diffstat (limited to 'features.h')
-rw-r--r-- | features.h | 22 |
1 files changed, 8 insertions, 14 deletions
@@ -79,22 +79,16 @@ Cambridge, MA 02139, USA. */ #define __FAVOR_BSD 1 #endif -/* Explicit features turn off -ansi. */ -#if (defined (_GNU_SOURCE) || \ - defined (_BSD_SOURCE) || defined (_SVID_SOURCE) || \ - defined (_POSIX_SOURCE) || defined (_POSIX_C_SOURCE)) -#undef __STRICT_ANSI__ -#endif - /* If _GNU_SOURCE was defined by the user, turn on all the other features. */ #ifdef _GNU_SOURCE -/* If the user specifies some of the following without _GNU_SOURCE, - they are mutually exclusive. But they all default below to on, - so undefine them to get all the features turned on for _GNU_SOURCE. */ -#undef _POSIX_SOURCE -#undef _POSIX_C_SOURCE -#undef _BSD_SOURCE -#undef _SVID_SOURCE +#undef _POSIX_SOURCE +#define _POSIX_SOURCE 1 +#undef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 2 +#undef _BSD_SOURCE +#define _BSD_SOURCE 1 +#undef _SVID_SOURCE +#define _SVID_SOURCE 1 #endif /* If nothing (other than _GNU_SOURCE) is defined, |