summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/w32api/include')
-rw-r--r--winsup/w32api/include/specstrings.h27
-rw-r--r--winsup/w32api/include/windef.h23
2 files changed, 27 insertions, 23 deletions
diff --git a/winsup/w32api/include/specstrings.h b/winsup/w32api/include/specstrings.h
new file mode 100644
index 000000000..d5ee7f69d
--- /dev/null
+++ b/winsup/w32api/include/specstrings.h
@@ -0,0 +1,27 @@
+#ifndef _SPECSTRINGS_H
+#define _SPECSTRINGS_H
+#if __GNUC__ >=3
+#pragma GCC system_header
+#endif
+
+/* __in and __out currently conflict with libstdc++, use with caution */
+
+#define IN
+#define OUT
+#define __in
+#define __inout
+#define __in_opt
+#define __in_bcount(x)
+#define __in_ecount(x)
+#define __out
+#define __out_ecount_part(x)
+#define __out_ecount_part(x,y)
+#define __struct_bcount(x)
+#define __field_ecount_opt(x)
+#define __out_bcount_opt(x)
+#ifndef OPTIONAL
+#define OPTIONAL
+#endif
+
+#endif
+
diff --git a/winsup/w32api/include/windef.h b/winsup/w32api/include/windef.h
index 5dd04013c..4e7c44e0d 100644
--- a/winsup/w32api/include/windef.h
+++ b/winsup/w32api/include/windef.h
@@ -55,29 +55,6 @@ 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
-#define __in
-#define __inout
-#define __in_opt
-#define __in_bcount(x)
-#define __in_ecount(x)
-#define __out
-#define __out_ecount_part(x)
-#define __out_ecount_part(x,y)
-#define __struct_bcount(x)
-#define __field_ecount_opt(x)
-#define __out_bcount_opt(x)
-#ifndef OPTIONAL
-#define OPTIONAL
-#endif
-#endif
-
#ifdef __GNUC__
#define PACKED __attribute__((packed))
#ifndef _fastcall