Fix rpcndr.h so it takes CONST_VTABLE into account.
Francois Gouget
fgouget at free.fr
Fri Sep 29 05:45:44 CDT 2006
Define CONST_VTABLE in the tests that need it. This fixes many Visual C++ warnings.
---
dlls/mshtml/tests/htmldoc.c | 1 +
dlls/ole32/tests/compobj.c | 1 +
dlls/ole32/tests/marshal.c | 1 +
dlls/shdocvw/tests/webbrowser.c | 1 +
dlls/shell32/tests/shlfolder.c | 1 +
dlls/urlmon/tests/misc.c | 1 +
dlls/urlmon/tests/protocol.c | 1 +
dlls/urlmon/tests/url.c | 1 +
include/rpcndr.h | 7 +++++++
9 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c
index 96afe73..6d404ac 100644
--- a/dlls/mshtml/tests/htmldoc.c
+++ b/dlls/mshtml/tests/htmldoc.c
@@ -17,6 +17,7 @@
*/
#define COBJMACROS
+#define CONST_VTABLE
#include <wine/test.h>
#include <stdarg.h>
diff --git a/dlls/ole32/tests/compobj.c b/dlls/ole32/tests/compobj.c
index ba820b5..44f2fb0 100644
--- a/dlls/ole32/tests/compobj.c
+++ b/dlls/ole32/tests/compobj.c
@@ -19,6 +19,7 @@
*/
#define COBJMACROS
+#define CONST_VTABLE
#include <stdarg.h>
diff --git a/dlls/ole32/tests/marshal.c b/dlls/ole32/tests/marshal.c
index 13d3d1b..1d8093a 100644
--- a/dlls/ole32/tests/marshal.c
+++ b/dlls/ole32/tests/marshal.c
@@ -20,6 +20,7 @@
#define _WIN32_DCOM
#define COBJMACROS
+#define CONST_VTABLE
#include <stdarg.h>
diff --git a/dlls/shdocvw/tests/webbrowser.c b/dlls/shdocvw/tests/webbrowser.c
index 161f608..a21d732 100644
--- a/dlls/shdocvw/tests/webbrowser.c
+++ b/dlls/shdocvw/tests/webbrowser.c
@@ -17,6 +17,7 @@
*/
#define COBJMACROS
+#define CONST_VTABLE
#include <wine/test.h>
#include <stdarg.h>
diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c
index 7751514..a1610da 100644
--- a/dlls/shell32/tests/shlfolder.c
+++ b/dlls/shell32/tests/shlfolder.c
@@ -22,6 +22,7 @@ #include <stdarg.h>
#include <stdio.h>
#define COBJMACROS
+#define CONST_VTABLE
#include "windef.h"
#include "winbase.h"
diff --git a/dlls/urlmon/tests/misc.c b/dlls/urlmon/tests/misc.c
index 14b3fa4..802eb4b 100644
--- a/dlls/urlmon/tests/misc.c
+++ b/dlls/urlmon/tests/misc.c
@@ -17,6 +17,7 @@
*/
#define COBJMACROS
+#define CONST_VTABLE
#include <wine/test.h>
#include <stdarg.h>
diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c
index 443e200..341f4fb 100644
--- a/dlls/urlmon/tests/protocol.c
+++ b/dlls/urlmon/tests/protocol.c
@@ -17,6 +17,7 @@
*/
#define COBJMACROS
+#define CONST_VTABLE
#include <wine/test.h>
#include <stdarg.h>
diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c
index 282c311..aa33013 100644
--- a/dlls/urlmon/tests/url.c
+++ b/dlls/urlmon/tests/url.c
@@ -22,6 +22,7 @@
#include <stdarg.h>
#define COBJMACROS
+#define CONST_VTABLE
#include "windef.h"
#include "winbase.h"
diff --git a/include/rpcndr.h b/include/rpcndr.h
index 780fa29..f4ca82a 100644
--- a/include/rpcndr.h
+++ b/include/rpcndr.h
@@ -30,6 +30,13 @@ #endif
#include <basetsd.h>
+#undef CONST_VTBL
+#ifdef CONST_VTABLE
+# define CONST_VTBL const
+#else
+# define CONST_VTBL
+#endif
+
/* stupid #if can't handle casts... this __stupidity
is just a workaround for that limitation */
--
1.4.1.1
More information about the wine-patches
mailing list