commit patch of bugzilla entry 1073 to to compile Explorer in a Wine environment
authorMartin Fuchs <fuchs.martin@gmail.com>
Wed, 28 Dec 2005 22:52:35 +0000 (22:52 +0000)
committerMartin Fuchs <fuchs.martin@gmail.com>
Wed, 28 Dec 2005 22:52:35 +0000 (22:52 +0000)
svn path=/trunk/; revision=20408

reactos/subsys/system/explorer/Makefile.Wine
reactos/subsys/system/explorer/utility/shellclasses.h

index 70e36d0..c4d51b3 100644 (file)
@@ -5,7 +5,7 @@ SRCDIR    = .
 MODULE    = explorer.exe
 APPMODE   = gui
 IMPORTS   = shell32 comctl32 msimg32 ole32 user32 gdi32 kernel32 advapi32 oleaut32
-EXTRADEFS = -D__WINE__ -D_WIN32_IE=0x0600 -D_WIN32_WINNT=0x0501 -DWINVER=0x0500 -D__MINGW32__
+EXTRADEFS = -D__WINE__ -D_WIN32_IE=0x0600 -D_WIN32_WINNT=0x0501 -DWINVER=0x0500 -D__MINGW32__ -DCINTERFACE
 EXTRA_OBJS = notifyhook.dll libexpat.dll
 EXTRALIBS = $(LIBUUID)
 
index e3f902e..3b23981 100644 (file)
@@ -843,7 +843,7 @@ struct ShellPath : public SShellPtr<ITEMIDLIST>
 };
 
 
-#ifdef __WINE__        // Wine doesn't know of unnamed union members and uses some macros instead.
+#if defined(__WINE__) && defined(NONAMELESSUNION)      // Wine doesn't know of unnamed union members and uses some macros instead.
 #define        UNION_MEMBER(x) DUMMYUNIONNAME.##x
 #else
 #define        UNION_MEMBER(x) x
@@ -1160,5 +1160,6 @@ protected:
        CtxMenuInterfaces _cm_ifs;
 };
 
+
 extern HRESULT ShellFolderContextMenu(IShellFolder* shell_folder, HWND hwndParent, int cidl,
                                                                                LPCITEMIDLIST* ppidl, int x, int y, CtxMenuInterfaces& cm_ifs);