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:
Diffstat (limited to 'winsup/w32api/include/windef.h')
-rw-r--r--winsup/w32api/include/windef.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/winsup/w32api/include/windef.h b/winsup/w32api/include/windef.h
index 4e7c44e0d..793591cb2 100644
--- a/winsup/w32api/include/windef.h
+++ b/winsup/w32api/include/windef.h
@@ -55,6 +55,18 @@ extern "C" {
#define TRUE 1
#endif
+/* Pseudo modifiers for parameters
+ We don't use these unnecessary defines in the w32api headers. Define
+ them by default since that is what people expect, but allow users
+ to avoid the pollution. */
+#ifndef _NO_W32_PSEUDO_MODIFIERS
+#define IN
+#define OUT
+#ifndef OPTIONAL
+#define OPTIONAL
+#endif
+#endif
+
#ifdef __GNUC__
#define PACKED __attribute__((packed))
#ifndef _fastcall
@@ -146,7 +158,7 @@ extern "C" {
#ifndef NONAMELESSUNION
#ifdef __GNUC__
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
#define _ANONYMOUS_UNION __extension__
#define _ANONYMOUS_STRUCT __extension__
#else