Jacek Caban : widl: Generate class forward declaration for coclasses.
Alexandre Julliard
julliard at winehq.org
Wed Jul 6 13:31:10 CDT 2011
Module: wine
Branch: master
Commit: 9afec542e0aafbc79e8338fcb274483f7c389f6e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9afec542e0aafbc79e8338fcb274483f7c389f6e
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Jul 6 14:08:16 2011 +0200
widl: Generate class forward declaration for coclasses.
---
tools/widl/header.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tools/widl/header.c b/tools/widl/header.c
index 4dee484..6e288d4 100644
--- a/tools/widl/header.c
+++ b/tools/widl/header.c
@@ -1152,6 +1152,9 @@ static void write_coclass(FILE *header, type_t *cocl)
fprintf(header, " * %s coclass\n", cocl->name);
fprintf(header, " */\n\n");
write_coclass_guid(header, cocl);
+ fprintf(header, "\n#ifdef __cplusplus\n");
+ fprintf(header, "class %s;\n", cocl->name);
+ fprintf(header, "#endif\n");
fprintf(header, "\n");
}
More information about the wine-cvs
mailing list