summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/basetyps.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/w32api/include/basetyps.h')
-rw-r--r--winsup/w32api/include/basetyps.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/w32api/include/basetyps.h b/winsup/w32api/include/basetyps.h
index bcfad6f75..ed0912c26 100644
--- a/winsup/w32api/include/basetyps.h
+++ b/winsup/w32api/include/basetyps.h
@@ -26,7 +26,11 @@
#define PURE =0
#define THIS_
#define THIS void
-#if defined(__GNUC__) && !defined(NOCOMATTRIBUTE)
+/*
+ __attribute__((com_interface)) is obsolete in __GNUC__ >= 3
+ g++ vtables are now COM-compatible by default
+*/
+#if defined(__GNUC__) && __GNUC__ < 3 && !defined(NOCOMATTRIBUTE)
#define DECLARE_INTERFACE(i) interface __attribute__((com_interface)) i
#define DECLARE_INTERFACE_(i,b) interface __attribute__((com_interface)) i : public b
#else