summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/windef.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/w32api/include/windef.h')
-rw-r--r--winsup/w32api/include/windef.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/w32api/include/windef.h b/winsup/w32api/include/windef.h
index ffc09debf..0411c42c5 100644
--- a/winsup/w32api/include/windef.h
+++ b/winsup/w32api/include/windef.h
@@ -54,11 +54,18 @@ extern "C" {
#ifndef TRUE
#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))