widl: Write forward declarations for coclass definitions

Alexandre Julliard julliard at winehq.org
Thu Aug 3 08:05:14 CDT 2006


Dan Hipschman <dsh at linux.ucla.edu> writes:

> diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h
> index e0c1c3c..262ed37 100644
> --- a/dlls/mshtml/mshtml_private.h
> +++ b/dlls/mshtml/mshtml_private.h
> @@ -53,7 +53,8 @@ typedef enum {
>      EDITMODE        
>  } USERMODE;
>  
> -typedef struct {
> +/* "typedef struct HTMLDocument HTMLDocument;" is in mshtml.h */
> +struct HTMLDocument {
>      const IHTMLDocument2Vtbl              *lpHTMLDocument2Vtbl;

It would be better to rename the types instead of depending on having
a typedef in a system header for an unrelated type.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list