2001-04-23 07:18:28 +08:00
|
|
|
/* features.h
|
|
|
|
|
|
|
|
This file is part of Cygwin.
|
|
|
|
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
#ifndef _FEATURES_H
|
|
|
|
#define _FEATURES_H
|
|
|
|
|
2004-12-02 01:07:03 +08:00
|
|
|
#include <sys/cdefs.h>
|
2001-04-23 07:18:28 +08:00
|
|
|
#include <sys/features.h>
|
|
|
|
|
2006-02-06 04:30:24 +08:00
|
|
|
/* Various options should be defined here, but the framework to do this
|
|
|
|
is not laid down so far. Especially notable are the following defines,
|
2006-05-28 23:50:14 +08:00
|
|
|
which can be used by the application to switch on or off various
|
2006-02-06 04:30:24 +08:00
|
|
|
datatypes and function prototypes:
|
2006-05-28 23:50:14 +08:00
|
|
|
|
2006-02-06 04:30:24 +08:00
|
|
|
_BSD_SOURCE to include pure BSD functions which are not defined
|
2006-05-28 23:50:14 +08:00
|
|
|
under POSIX.
|
2006-02-06 04:30:24 +08:00
|
|
|
|
|
|
|
_POSIX_SOURCE if the application requests a POSIX compatible system.
|
|
|
|
|
|
|
|
_XOPEN_SOURCE if X/Open functions and datatypes are requested. This
|
2006-05-28 23:50:14 +08:00
|
|
|
option includes _POSIX_SOURCE.
|
2006-02-06 04:30:24 +08:00
|
|
|
|
|
|
|
_GNU_SOURCE to turn on GNU extensions which might collide with defines
|
2006-05-28 23:50:14 +08:00
|
|
|
used in application or library headers. This option
|
2006-02-06 04:30:24 +08:00
|
|
|
includes _BSD_SOURCE, _XOPEN_SOURCE and _POSIX_SOURCE.
|
|
|
|
*/
|
|
|
|
|
2001-04-23 07:18:28 +08:00
|
|
|
#endif /* _FEATURES_H */
|