mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
* features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,
_POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
Sun May 26 15:15:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
|
Sun May 26 15:15:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
|
||||||
|
|
||||||
* features.h [_GNU_SOURCE || _BSD_SOURCE || _SVID_SOURCE ||
|
* features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,
|
||||||
_POSIX_SOURCE || _POSIX_C_SOURCE]: #undef __STRICT_ANSI__.
|
_POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
|
||||||
|
|
||||||
* time/Makefile (tzcompile): Add missing backslash.
|
* time/Makefile (tzcompile): Add missing backslash.
|
||||||
|
|
||||||
|
22
features.h
22
features.h
@@ -79,22 +79,16 @@ Cambridge, MA 02139, USA. */
|
|||||||
#define __FAVOR_BSD 1
|
#define __FAVOR_BSD 1
|
||||||
#endif
|
#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. */
|
/* If _GNU_SOURCE was defined by the user, turn on all the other features. */
|
||||||
#ifdef _GNU_SOURCE
|
#ifdef _GNU_SOURCE
|
||||||
/* If the user specifies some of the following without _GNU_SOURCE,
|
#undef _POSIX_SOURCE
|
||||||
they are mutually exclusive. But they all default below to on,
|
#define _POSIX_SOURCE 1
|
||||||
so undefine them to get all the features turned on for _GNU_SOURCE. */
|
#undef _POSIX_C_SOURCE
|
||||||
#undef _POSIX_SOURCE
|
#define _POSIX_C_SOURCE 2
|
||||||
#undef _POSIX_C_SOURCE
|
#undef _BSD_SOURCE
|
||||||
#undef _BSD_SOURCE
|
#define _BSD_SOURCE 1
|
||||||
#undef _SVID_SOURCE
|
#undef _SVID_SOURCE
|
||||||
|
#define _SVID_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If nothing (other than _GNU_SOURCE) is defined,
|
/* If nothing (other than _GNU_SOURCE) is defined,
|
||||||
|
Reference in New Issue
Block a user