On Thu, Sep 16, 2010 at 6:36 AM, Chris Sutcliffe <[email protected]> wrote:
> There is a problem with shlobjidl.h, in that gcc complains with:
>
> C:\MinGW64\mingw\include/shobjidl.h:800:3: warning: 'typedef' was
> ignored in this declaration
>
> Due to:
>
>  typedef enum tagSHCONTF {
>    SHCONTF_FOLDERS = 0x0020,SHCONTF_NONFOLDERS =
> 0x0040,SHCONTF_INCLUDEHIDDEN = 0x0080,SHCONTF_INIT_ON_FIRST_NEXT =
> 0x0100,
>    SHCONTF_NETPRINTERSRCH = 0x0200,SHCONTF_SHAREABLE =
> 0x0400,SHCONTF_STORAGE = 0x0800
>  };
>  typedef DWORD SHCONTF;
>
> This patch corrects the issue (based on MSDN -
> http://msdn.microsoft.com/en-us/library/bb762539(VS.85).aspx):
>
> $ diff -u shobjidl.h.orig shobjidl.h
> --- shobjidl.h.orig     2010-09-15 23:28:35 -0400
> +++ shobjidl.h  2010-09-15 23:31:37 -0400
> @@ -797,8 +797,7 @@
>   typedef enum tagSHCONTF {
>     SHCONTF_FOLDERS = 0x0020,SHCONTF_NONFOLDERS =
> 0x0040,SHCONTF_INCLUDEHIDDEN = 0x0080,SHCONTF_INIT_ON_FIRST_NEXT =
> 0x0100,
>     SHCONTF_NETPRINTERSRCH = 0x0200,SHCONTF_SHAREABLE =
> 0x0400,SHCONTF_STORAGE = 0x0800
> -  };
> -  typedef DWORD SHCONTF;
> +  } SHCONTF;
>
>  #define SHCIDS_ALLFIELDS 0x80000000L
>  #define SHCIDS_CANONICALONLY 0x10000000L
>

Thanks!  Fixed in an alternative way, as in the following:

Index: shobjidl.h
===================================================================
--- shobjidl.h  (revision 3576)
+++ shobjidl.h  (working copy)
@@ -788,12 +788,12 @@

   typedef IEnumIDList *LPENUMIDLIST;

-  typedef enum tagSHGDN {
+  enum _SHGDNF {
     SHGDN_NORMAL = 0x0000,SHGDN_INFOLDER = 0x0001,SHGDN_FOREDITING =
0x1000,SHGDN_FORADDRESSBAR = 0x4000,SHGDN_FORPARSING = 0x8000
-  } SHGNO;
+  };
   typedef DWORD SHGDNF;

-  typedef enum tagSHCONTF {
+  enum _SHCONTF {
     SHCONTF_FOLDERS = 0x0020,SHCONTF_NONFOLDERS =
0x0040,SHCONTF_INCLUDEHIDDEN = 0x0080,SHCONTF_INIT_ON_FIRST_NEXT =
0x0100,
     SHCONTF_NETPRINTERSRCH = 0x0200,SHCONTF_SHAREABLE =
0x0400,SHCONTF_STORAGE = 0x0800
   };


> Cheers!
>
> Chris
>
> --
> Chris Sutcliffe
> http://emergedesktop.org
> http://www.google.com/profiles/ir0nh34d

--
Ozkan

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to