Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-02-05 23:30:24 +0300
committerCorinna Vinschen <corinna@vinschen.de>2006-02-05 23:30:24 +0300
commit6da41754a4be63e4e4c5f15d52ddec733913a6ad (patch)
tree44bae3be923b1b922ee876a47a1a3dd7fc8d154a /winsup/cygwin/include/features.h
parent6fc6eeae9602d692f4fa5a222cd30812032f31ca (diff)
* include/features.h: Add comment to explain what's going to happen
here at one point. * include/sys/stdio.h: Guard getline and getdelim prototypes with _GNU_SOURCE to avoid collision with old-style declarations.
Diffstat (limited to 'winsup/cygwin/include/features.h')
-rw-r--r--winsup/cygwin/include/features.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/winsup/cygwin/include/features.h b/winsup/cygwin/include/features.h
index 0fcc90bfd..69c12d22c 100644
--- a/winsup/cygwin/include/features.h
+++ b/winsup/cygwin/include/features.h
@@ -14,4 +14,22 @@ details. */
#include <sys/cdefs.h>
#include <sys/features.h>
+/* Various options should be defined here, but the framework to do this
+ is not laid down so far. Especially notable are the following defines,
+ which can be used by the application to switch on or off various
+ datatypes and function prototypes:
+
+ _BSD_SOURCE to include pure BSD functions which are not defined
+ under POSIX.
+
+ _POSIX_SOURCE if the application requests a POSIX compatible system.
+
+ _XOPEN_SOURCE if X/Open functions and datatypes are requested. This
+ option includes _POSIX_SOURCE.
+
+ _GNU_SOURCE to turn on GNU extensions which might collide with defines
+ used in application or library headers. This option
+ includes _BSD_SOURCE, _XOPEN_SOURCE and _POSIX_SOURCE.
+*/
+
#endif /* _FEATURES_H */