From 297f3d898d1c5e433c6b608accb6f842cf1d84a1 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Tue, 7 Jan 2003 20:36:20 +0000 Subject: [PATCH] Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them. --- dlls/comctl32/comctl32undoc.c | 2 ++ dlls/comctl32/propsheet.c | 2 ++ dlls/comctl32/treeview.c | 2 ++ dlls/commdlg/filedlg95.c | 2 ++ dlls/commdlg/filedlgbrowser.c | 2 ++ dlls/commdlg/printdlg.c | 3 +++ dlls/d3d8/device.c | 3 +++ dlls/d3d8/directx.c | 2 ++ dlls/ddraw/d3dcommon.c | 2 ++ dlls/ddraw/d3ddevice/mesa.c | 2 ++ dlls/ddraw/d3dexecutebuffer.c | 2 ++ dlls/ddraw/d3dlight.c | 2 ++ dlls/ddraw/d3dmaterial.c | 2 ++ dlls/ddraw/d3dtexture.c | 2 ++ dlls/ddraw/d3dviewport.c | 2 ++ dlls/ddraw/ddraw/main.c | 2 ++ dlls/ddraw/ddraw/user.c | 6 ++++-- dlls/ddraw/direct3d/mesa.c | 2 ++ dlls/ddraw/dsurface/dib.c | 3 +++ dlls/ddraw/dsurface/fakezbuffer.c | 2 ++ dlls/ddraw/dsurface/hal.c | 2 ++ dlls/ddraw/dsurface/main.c | 4 +++- dlls/ddraw/helper.c | 2 ++ dlls/dplayx/dplay.c | 2 ++ dlls/dplayx/dplayx_global.c | 3 +++ dlls/dplayx/dplobby.c | 2 ++ dlls/dplayx/name_server.c | 3 +++ dlls/dsound/sound3d.c | 2 ++ dlls/kernel/time.c | 3 +++ dlls/ntdll/cdrom.c | 2 ++ dlls/ntdll/file.c | 3 +++ dlls/ntdll/heap.c | 2 ++ dlls/ntdll/time.c | 3 +++ dlls/ntdll/virtual.c | 2 ++ dlls/ole32/antimoniker.c | 3 +++ dlls/ole32/clipboard.c | 2 ++ dlls/ole32/compobj.c | 2 ++ dlls/ole32/compositemoniker.c | 3 +++ dlls/ole32/datacache.c | 3 +++ dlls/ole32/filemoniker.c | 3 +++ dlls/ole32/hglobalstream.c | 2 ++ dlls/ole32/itemmoniker.c | 3 +++ dlls/ole32/memlockbytes.c | 2 ++ dlls/ole32/ole2.c | 2 ++ dlls/ole32/ole2impl.c | 3 +++ dlls/ole32/ole2stubs.c | 2 ++ dlls/ole32/oleproxy.c | 2 ++ dlls/ole32/rpc.c | 2 ++ dlls/ole32/stg_bigblockfile.c | 2 ++ dlls/ole32/stg_stream.c | 3 +++ dlls/ole32/storage.c | 3 +++ dlls/ole32/storage32.c | 2 ++ dlls/oleaut32/olefont.c | 3 +++ dlls/oleaut32/olepicture.c | 3 +++ dlls/oleaut32/tmarshal.c | 2 ++ dlls/oleaut32/typelib.c | 2 ++ dlls/oleaut32/variant.c | 2 ++ dlls/rpcrt4/ndr_ole.c | 2 ++ dlls/shell32/brsfolder.c | 2 ++ dlls/shell32/dataobject.c | 2 ++ dlls/shell32/shellstring.c | 2 ++ dlls/shell32/shfldr_desktop.c | 2 ++ dlls/shell32/shfldr_fs.c | 2 ++ dlls/shell32/shfldr_mycomp.c | 2 ++ dlls/shell32/shv_bg_cmenu.c | 2 ++ dlls/shell32/shv_item_cmenu.c | 2 ++ dlls/shlwapi/istream.c | 2 ++ dlls/shlwapi/string.c | 2 ++ dlls/twain/dsm_ctrl.c | 3 +++ dlls/urlmon/umon.c | 2 ++ dlls/user/exticon.c | 2 ++ dlls/version/resource.c | 2 ++ dlls/winedos/int2f.c | 4 +++- dlls/winedos/vga.c | 3 +++ dlls/wineps/driver.c | 3 +++ dlls/wineps/init.c | 2 ++ dlls/wineps/ps.c | 3 +++ dlls/winmm/mmsystem.c | 2 ++ dlls/winmm/wineoss/mixer.c | 2 ++ dlls/winmm/winmm.c | 2 ++ dlls/winspool/info.c | 5 ++++- dlls/x11drv/dga2.c | 2 ++ dlls/x11drv/keyboard.c | 2 ++ dlls/x11drv/mouse.c | 2 ++ dlls/x11drv/x11ddraw.c | 2 ++ files/drive.c | 2 ++ files/file.c | 2 ++ include/winnt.h | 26 +++++++++++++++++--------- library/loader.c | 2 ++ loader/pe_resource.c | 2 ++ memory/heap.c | 2 ++ memory/virtual.c | 2 ++ misc/cpu.c | 2 ++ misc/system.c | 2 ++ msdos/vxd.c | 3 +++ scheduler/timer.c | 3 +++ tools/winedump/pe.c | 2 ++ win32/newfns.c | 3 +++ windows/input.c | 2 ++ 99 files changed, 244 insertions(+), 14 deletions(-) diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index e882aaec8cd..71308ac92ab 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -37,6 +37,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "commctrl.h" #include "objbase.h" #include "winbase.h" diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c index d1d759d9811..8389fe537fe 100644 --- a/dlls/comctl32/propsheet.c +++ b/dlls/comctl32/propsheet.c @@ -25,6 +25,8 @@ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "commctrl.h" #include "prsht.h" diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 1a79e13c132..faedd28fedb 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -47,6 +47,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "wingdi.h" #include "commctrl.h" diff --git a/dlls/commdlg/filedlg95.c b/dlls/commdlg/filedlg95.c index 4fd3d2678f0..b2f7037591b 100644 --- a/dlls/commdlg/filedlg95.c +++ b/dlls/commdlg/filedlg95.c @@ -59,6 +59,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "winternl.h" #include "winnls.h" diff --git a/dlls/commdlg/filedlgbrowser.c b/dlls/commdlg/filedlgbrowser.c index 2ef6a6c702e..98b4b9f489a 100644 --- a/dlls/commdlg/filedlgbrowser.c +++ b/dlls/commdlg/filedlgbrowser.c @@ -22,6 +22,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "winnls.h" diff --git a/dlls/commdlg/printdlg.c b/dlls/commdlg/printdlg.c index e88f25dd037..dee146b1566 100644 --- a/dlls/commdlg/printdlg.c +++ b/dlls/commdlg/printdlg.c @@ -24,6 +24,9 @@ #include #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "wingdi.h" diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c index bba516dd6fe..4b4815a1fda 100644 --- a/dlls/d3d8/device.c +++ b/dlls/d3d8/device.c @@ -19,6 +19,9 @@ */ #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "winuser.h" diff --git a/dlls/d3d8/directx.c b/dlls/d3d8/directx.c index c03cf826d9e..fe3b21df1cb 100644 --- a/dlls/d3d8/directx.c +++ b/dlls/d3d8/directx.c @@ -18,6 +18,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "winuser.h" diff --git a/dlls/ddraw/d3dcommon.c b/dlls/ddraw/d3dcommon.c index 64fe11c4c51..7aa771ed51e 100644 --- a/dlls/ddraw/d3dcommon.c +++ b/dlls/ddraw/d3dcommon.c @@ -19,6 +19,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "objbase.h" #include "ddraw.h" diff --git a/dlls/ddraw/d3ddevice/mesa.c b/dlls/ddraw/d3ddevice/mesa.c index c2f175e41fb..c5966854884 100644 --- a/dlls/ddraw/d3ddevice/mesa.c +++ b/dlls/ddraw/d3ddevice/mesa.c @@ -23,6 +23,8 @@ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winerror.h" #include "objbase.h" diff --git a/dlls/ddraw/d3dexecutebuffer.c b/dlls/ddraw/d3dexecutebuffer.c index 23ac9e81a20..fb1b8cc02a4 100644 --- a/dlls/ddraw/d3dexecutebuffer.c +++ b/dlls/ddraw/d3dexecutebuffer.c @@ -22,6 +22,8 @@ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winerror.h" #include "objbase.h" diff --git a/dlls/ddraw/d3dlight.c b/dlls/ddraw/d3dlight.c index 87c5b837426..d9cba08d0eb 100644 --- a/dlls/ddraw/d3dlight.c +++ b/dlls/ddraw/d3dlight.c @@ -18,6 +18,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "config.h" #include "windef.h" #include "winerror.h" diff --git a/dlls/ddraw/d3dmaterial.c b/dlls/ddraw/d3dmaterial.c index 00a662ed42d..efb175d8285 100644 --- a/dlls/ddraw/d3dmaterial.c +++ b/dlls/ddraw/d3dmaterial.c @@ -18,6 +18,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "config.h" #include "windef.h" #include "winerror.h" diff --git a/dlls/ddraw/d3dtexture.c b/dlls/ddraw/d3dtexture.c index 3d3885934e4..1cbe3ee60d3 100644 --- a/dlls/ddraw/d3dtexture.c +++ b/dlls/ddraw/d3dtexture.c @@ -22,6 +22,8 @@ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winerror.h" #include "objbase.h" diff --git a/dlls/ddraw/d3dviewport.c b/dlls/ddraw/d3dviewport.c index ce779053d9e..a0babe0c771 100644 --- a/dlls/ddraw/d3dviewport.c +++ b/dlls/ddraw/d3dviewport.c @@ -18,6 +18,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "config.h" #include "windef.h" #include "winerror.h" diff --git a/dlls/ddraw/ddraw/main.c b/dlls/ddraw/ddraw/main.c index 93c90117336..cb81c157843 100644 --- a/dlls/ddraw/ddraw/main.c +++ b/dlls/ddraw/ddraw/main.c @@ -31,6 +31,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "ddraw.h" #include "d3d.h" diff --git a/dlls/ddraw/ddraw/user.c b/dlls/ddraw/ddraw/user.c index d8194b1da7f..17217345fa7 100644 --- a/dlls/ddraw/ddraw/user.c +++ b/dlls/ddraw/ddraw/user.c @@ -18,12 +18,13 @@ */ #include "config.h" -#include "wine/debug.h" -#include "ddraw.h" #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT +#include "ddraw.h" #include "ddraw_private.h" #include "ddraw/main.h" #include "ddraw/user.h" @@ -32,6 +33,7 @@ #include "dsurface/main.h" #include "dsurface/dib.h" #include "dsurface/user.h" +#include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(ddraw); diff --git a/dlls/ddraw/direct3d/mesa.c b/dlls/ddraw/direct3d/mesa.c index 9b50edc097e..f2de4129504 100644 --- a/dlls/ddraw/direct3d/mesa.c +++ b/dlls/ddraw/direct3d/mesa.c @@ -27,6 +27,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "d3d.h" #include "ddraw.h" #include "winerror.h" diff --git a/dlls/ddraw/dsurface/dib.c b/dlls/ddraw/dsurface/dib.c index 4460a1b9993..61ec3c60487 100644 --- a/dlls/ddraw/dsurface/dib.c +++ b/dlls/ddraw/dsurface/dib.c @@ -24,6 +24,9 @@ #include #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "bitmap.h" #include "wine/debug.h" diff --git a/dlls/ddraw/dsurface/fakezbuffer.c b/dlls/ddraw/dsurface/fakezbuffer.c index 552acce0ad6..67e86c0f78a 100644 --- a/dlls/ddraw/dsurface/fakezbuffer.c +++ b/dlls/ddraw/dsurface/fakezbuffer.c @@ -27,6 +27,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "ddraw.h" #include "d3d.h" diff --git a/dlls/ddraw/dsurface/hal.c b/dlls/ddraw/dsurface/hal.c index 61ddad37b8c..ee62e006521 100644 --- a/dlls/ddraw/dsurface/hal.c +++ b/dlls/ddraw/dsurface/hal.c @@ -22,6 +22,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "wine/debug.h" #include "ddraw_private.h" #include "ddraw/user.h" diff --git a/dlls/ddraw/dsurface/main.c b/dlls/ddraw/dsurface/main.c index 7f2b3e5bf25..2a8ee336981 100644 --- a/dlls/ddraw/dsurface/main.c +++ b/dlls/ddraw/dsurface/main.c @@ -19,11 +19,13 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "config.h" -#include "winerror.h" #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT +#include "winerror.h" #include "mesa_private.h" #include "wine/debug.h" #include "ddraw_private.h" diff --git a/dlls/ddraw/helper.c b/dlls/ddraw/helper.c index 652fe2be363..97cc400a405 100644 --- a/dlls/ddraw/helper.c +++ b/dlls/ddraw/helper.c @@ -26,6 +26,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "d3d.h" #include "ddraw.h" #include "winerror.h" diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c index af5c0790926..18c1a07f16a 100644 --- a/dlls/dplayx/dplay.c +++ b/dlls/dplayx/dplay.c @@ -24,6 +24,8 @@ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winerror.h" #include "winbase.h" diff --git a/dlls/dplayx/dplayx_global.c b/dlls/dplayx/dplayx_global.c index 589bd0313a2..17c95f83782 100644 --- a/dlls/dplayx/dplayx_global.c +++ b/dlls/dplayx/dplayx_global.c @@ -24,6 +24,9 @@ */ #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "wine/debug.h" #include "winbase.h" #include "winerror.h" diff --git a/dlls/dplayx/dplobby.c b/dlls/dplayx/dplobby.c index 1f291d58b1b..4136070f4f1 100644 --- a/dlls/dplayx/dplobby.c +++ b/dlls/dplayx/dplobby.c @@ -20,6 +20,8 @@ */ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winerror.h" #include "winreg.h" diff --git a/dlls/dplayx/name_server.c b/dlls/dplayx/name_server.c index d02cbaa8247..490c366c119 100644 --- a/dlls/dplayx/name_server.c +++ b/dlls/dplayx/name_server.c @@ -22,6 +22,9 @@ /* NOTE: Methods with the NS_ prefix are name server methods */ #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "winnls.h" #include "wine/unicode.h" diff --git a/dlls/dsound/sound3d.c b/dlls/dsound/sound3d.c index 7d787296b54..795e026e5f5 100644 --- a/dlls/dsound/sound3d.c +++ b/dlls/dsound/sound3d.c @@ -49,6 +49,8 @@ #include #include /* Insomnia - pow() function */ +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "wingdi.h" diff --git a/dlls/kernel/time.c b/dlls/kernel/time.c index 69dbd285b93..611f5e4787d 100644 --- a/dlls/kernel/time.c +++ b/dlls/kernel/time.c @@ -31,6 +31,9 @@ #ifdef HAVE_SYS_TIMES_H # include #endif + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "file.h" #include "winternl.h" #include "winerror.h" diff --git a/dlls/ntdll/cdrom.c b/dlls/ntdll/cdrom.c index 0181b7fd860..596d4caa8e1 100644 --- a/dlls/ntdll/cdrom.c +++ b/dlls/ntdll/cdrom.c @@ -61,6 +61,8 @@ # include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winternl.h" #include "winioctl.h" #include "ntddstor.h" diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index 68793f56ff2..c7db40e986a 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -29,6 +29,9 @@ #ifdef HAVE_SYS_ERRNO_H #include #endif + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "wine/unicode.h" #include "wine/debug.h" #include "wine/server.h" diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index 3e13756f115..b7362703b7f 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -26,6 +26,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winternl.h" #include "wine/winbase16.h" #include "winbase.h" diff --git a/dlls/ntdll/time.c b/dlls/ntdll/time.c index 89d08042ab7..261ad775a01 100644 --- a/dlls/ntdll/time.c +++ b/dlls/ntdll/time.c @@ -34,6 +34,9 @@ #ifdef HAVE_UNISTD_H # include #endif + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winternl.h" #include "wine/unicode.h" #include "wine/debug.h" diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index 645aa414817..b2cbb159b0b 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -38,6 +38,8 @@ #include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winternl.h" #include "global.h" #include "wine/library.h" diff --git a/dlls/ole32/antimoniker.c b/dlls/ole32/antimoniker.c index cb56a7523cf..5b09899cb62 100644 --- a/dlls/ole32/antimoniker.c +++ b/dlls/ole32/antimoniker.c @@ -20,6 +20,9 @@ #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "winerror.h" #include "wine/unicode.h" diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c index 2239f8de046..df84312e859 100644 --- a/dlls/ole32/clipboard.c +++ b/dlls/ole32/clipboard.c @@ -61,6 +61,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "wingdi.h" diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 8ded0bc2d56..3b58b74b88c 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -29,6 +29,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "objbase.h" #include "ole2.h" diff --git a/dlls/ole32/compositemoniker.c b/dlls/ole32/compositemoniker.c index ed266f6427e..dcbfb755480 100644 --- a/dlls/ole32/compositemoniker.c +++ b/dlls/ole32/compositemoniker.c @@ -20,6 +20,9 @@ #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "winerror.h" #include "wine/debug.h" diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 491c5314466..a5918d4edfd 100644 --- a/dlls/ole32/datacache.c +++ b/dlls/ole32/datacache.c @@ -45,6 +45,9 @@ */ #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "wingdi.h" diff --git a/dlls/ole32/filemoniker.c b/dlls/ole32/filemoniker.c index 4ac0437509c..67ff53d90e1 100644 --- a/dlls/ole32/filemoniker.c +++ b/dlls/ole32/filemoniker.c @@ -20,6 +20,9 @@ #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "winerror.h" #include "winnls.h" diff --git a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c index 1a1ca1d96dc..0f81268a4f0 100644 --- a/dlls/ole32/hglobalstream.c +++ b/dlls/ole32/hglobalstream.c @@ -28,6 +28,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "objbase.h" #include "ole2.h" diff --git a/dlls/ole32/itemmoniker.c b/dlls/ole32/itemmoniker.c index 6a77c135b3b..cec06c88e70 100644 --- a/dlls/ole32/itemmoniker.c +++ b/dlls/ole32/itemmoniker.c @@ -20,6 +20,9 @@ #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "winbase.h" #include "winnls.h" diff --git a/dlls/ole32/memlockbytes.c b/dlls/ole32/memlockbytes.c index cea53f35d1b..bd9f937350b 100644 --- a/dlls/ole32/memlockbytes.c +++ b/dlls/ole32/memlockbytes.c @@ -24,6 +24,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "wine/winbase16.h" #include "objbase.h" diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 0277d7917da..4eab3f1c476 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -28,6 +28,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "commctrl.h" #include "ole2.h" #include "ole2ver.h" diff --git a/dlls/ole32/ole2impl.c b/dlls/ole32/ole2impl.c index 3e2c22b8b67..ba51ea6cd27 100644 --- a/dlls/ole32/ole2impl.c +++ b/dlls/ole32/ole2impl.c @@ -19,6 +19,9 @@ */ #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "wingdi.h" #include "winuser.h" diff --git a/dlls/ole32/ole2stubs.c b/dlls/ole32/ole2stubs.c index b3c02fb2a49..80d66812625 100644 --- a/dlls/ole32/ole2stubs.c +++ b/dlls/ole32/ole2stubs.c @@ -19,6 +19,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "winuser.h" diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c index 7b9a73f50b1..2302b8cb503 100644 --- a/dlls/ole32/oleproxy.c +++ b/dlls/ole32/oleproxy.c @@ -37,6 +37,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "objbase.h" #include "ole2.h" diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index 117804b9286..066fd907fa5 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -25,6 +25,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "objbase.h" #include "ole2.h" diff --git a/dlls/ole32/stg_bigblockfile.c b/dlls/ole32/stg_bigblockfile.c index 7990491d0e7..a696f055848 100644 --- a/dlls/ole32/stg_bigblockfile.c +++ b/dlls/ole32/stg_bigblockfile.c @@ -37,6 +37,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "winerror.h" #include "objbase.h" diff --git a/dlls/ole32/stg_stream.c b/dlls/ole32/stg_stream.c index 8ee499543fb..41320b8ec4d 100644 --- a/dlls/ole32/stg_stream.c +++ b/dlls/ole32/stg_stream.c @@ -22,11 +22,14 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #include #include #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "winerror.h" #include "winternl.h" diff --git a/dlls/ole32/storage.c b/dlls/ole32/storage.c index 43739fc6e45..c4b136f82a4 100644 --- a/dlls/ole32/storage.c +++ b/dlls/ole32/storage.c @@ -30,6 +30,9 @@ #ifdef HAVE_UNISTD_H # include #endif + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winternl.h" #include "winerror.h" diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 7a7855c2c08..72221780de6 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -29,6 +29,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" /* for lstrlenW() and the likes */ #include "winnls.h" #include "wine/unicode.h" diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c index e04362d7f51..61c1775552b 100644 --- a/dlls/oleaut32/olefont.c +++ b/dlls/oleaut32/olefont.c @@ -22,6 +22,9 @@ */ #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "winbase.h" #include "wingdi.h" diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index 480375d3c9e..a916011f7e2 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -42,6 +42,9 @@ #endif #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "winbase.h" #include "wingdi.h" diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index cbd2cfb9940..d8619f04340 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -26,6 +26,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "winnls.h" #include "winreg.h" diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index e9b14004cca..f1d4d9f522b 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -60,6 +60,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "winnls.h" /* for PRIMARYLANGID */ #include "winreg.h" /* for HKEY_LOCAL_MACHINE */ diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c index 5f60755854f..3b8f6e15ae4 100644 --- a/dlls/oleaut32/variant.c +++ b/dlls/oleaut32/variant.c @@ -46,6 +46,8 @@ # include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "oleauto.h" #include "heap.h" diff --git a/dlls/rpcrt4/ndr_ole.c b/dlls/rpcrt4/ndr_ole.c index 0bd1725aa98..611010c6ca9 100644 --- a/dlls/rpcrt4/ndr_ole.c +++ b/dlls/rpcrt4/ndr_ole.c @@ -27,6 +27,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "winerror.h" diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c index 2d7bbfc8804..c29529838b6 100644 --- a/dlls/shell32/brsfolder.c +++ b/dlls/shell32/brsfolder.c @@ -24,6 +24,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "wine/debug.h" #include "undocshell.h" #include "shlguid.h" diff --git a/dlls/shell32/dataobject.c b/dlls/shell32/dataobject.c index 81d39a08d13..2e4d8a4b329 100644 --- a/dlls/shell32/dataobject.c +++ b/dlls/shell32/dataobject.c @@ -21,6 +21,8 @@ */ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "pidl.h" #include "winerror.h" #include "shell32_main.h" diff --git a/dlls/shell32/shellstring.c b/dlls/shell32/shellstring.c index 0be10d45562..5e5f53a6eeb 100644 --- a/dlls/shell32/shellstring.c +++ b/dlls/shell32/shellstring.c @@ -21,6 +21,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winnls.h" #include "winerror.h" #include "winreg.h" diff --git a/dlls/shell32/shfldr_desktop.c b/dlls/shell32/shfldr_desktop.c index a87c0c30034..22079a24c0f 100644 --- a/dlls/shell32/shfldr_desktop.c +++ b/dlls/shell32/shfldr_desktop.c @@ -27,6 +27,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "winbase.h" #include "winreg.h" diff --git a/dlls/shell32/shfldr_fs.c b/dlls/shell32/shfldr_fs.c index ba184ee726b..293a2f8804f 100644 --- a/dlls/shell32/shfldr_fs.c +++ b/dlls/shell32/shfldr_fs.c @@ -27,6 +27,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "winbase.h" #include "winreg.h" diff --git a/dlls/shell32/shfldr_mycomp.c b/dlls/shell32/shfldr_mycomp.c index 9a7b7ebb91b..4a98429ad6a 100644 --- a/dlls/shell32/shfldr_mycomp.c +++ b/dlls/shell32/shfldr_mycomp.c @@ -27,6 +27,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "winbase.h" #include "winreg.h" diff --git a/dlls/shell32/shv_bg_cmenu.c b/dlls/shell32/shv_bg_cmenu.c index 6f847f15239..2c590d619ab 100644 --- a/dlls/shell32/shv_bg_cmenu.c +++ b/dlls/shell32/shv_bg_cmenu.c @@ -20,6 +20,8 @@ */ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "wine/debug.h" #include "pidl.h" diff --git a/dlls/shell32/shv_item_cmenu.c b/dlls/shell32/shv_item_cmenu.c index 06899375f2d..8899a3a29c0 100644 --- a/dlls/shell32/shv_item_cmenu.c +++ b/dlls/shell32/shv_item_cmenu.c @@ -20,6 +20,8 @@ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "wine/debug.h" diff --git a/dlls/shlwapi/istream.c b/dlls/shlwapi/istream.c index 3729212cdb9..ca9a26fed3c 100644 --- a/dlls/shlwapi/istream.c +++ b/dlls/shlwapi/istream.c @@ -19,6 +19,8 @@ */ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "winerror.h" #include "winnls.h" diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c index 2428e3d6fea..bfda868b59c 100644 --- a/dlls/shlwapi/string.c +++ b/dlls/shlwapi/string.c @@ -29,6 +29,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "windef.h" #include "winbase.h" diff --git a/dlls/twain/dsm_ctrl.c b/dlls/twain/dsm_ctrl.c index 8f1b69e9649..3c55ea5fb1a 100644 --- a/dlls/twain/dsm_ctrl.c +++ b/dlls/twain/dsm_ctrl.c @@ -21,6 +21,9 @@ #include "config.h" #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "twain.h" #include "twain_i.h" diff --git a/dlls/urlmon/umon.c b/dlls/urlmon/umon.c index 3004b2d3f13..d22fcefff79 100644 --- a/dlls/urlmon/umon.c +++ b/dlls/urlmon/umon.c @@ -26,6 +26,8 @@ #define COM_NO_WINDOWS_H #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "winuser.h" diff --git a/dlls/user/exticon.c b/dlls/user/exticon.c index 63f8044a484..c69fb94d226 100644 --- a/dlls/user/exticon.c +++ b/dlls/user/exticon.c @@ -31,6 +31,8 @@ # include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "windef.h" #include "winerror.h" diff --git a/dlls/version/resource.c b/dlls/version/resource.c index b2dcc6d2865..1c7b6bf6547 100644 --- a/dlls/version/resource.c +++ b/dlls/version/resource.c @@ -29,6 +29,8 @@ # include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "lzexpand.h" diff --git a/dlls/winedos/int2f.c b/dlls/winedos/int2f.c index eed83b6759d..6a598ea436b 100644 --- a/dlls/winedos/int2f.c +++ b/dlls/winedos/int2f.c @@ -24,9 +24,11 @@ #include "config.h" #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "wine/winbase16.h" #include "miscemu.h" -/* #define DEBUG_INT */ #include "wine/debug.h" #include "winioctl.h" #include "ntddstor.h" diff --git a/dlls/winedos/vga.c b/dlls/winedos/vga.c index dc81bc5821b..42fe308ee9d 100644 --- a/dlls/winedos/vga.c +++ b/dlls/winedos/vga.c @@ -19,6 +19,9 @@ */ #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "wingdi.h" #include "winuser.h" diff --git a/dlls/wineps/driver.c b/dlls/wineps/driver.c index d132e62a550..6cc444c2f89 100644 --- a/dlls/wineps/driver.c +++ b/dlls/wineps/driver.c @@ -23,6 +23,9 @@ */ #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "psdrv.h" #include "wine/debug.h" #include "winuser.h" diff --git a/dlls/wineps/init.c b/dlls/wineps/init.c index fa6e9da300a..5b8c0008ac0 100644 --- a/dlls/wineps/init.c +++ b/dlls/wineps/init.c @@ -27,6 +27,8 @@ # include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "gdi.h" #include "psdrv.h" #include "wine/debug.h" diff --git a/dlls/wineps/ps.c b/dlls/wineps/ps.c index 8c072fca1fc..08d503624e2 100644 --- a/dlls/wineps/ps.c +++ b/dlls/wineps/ps.c @@ -21,6 +21,9 @@ #include #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "gdi.h" #include "psdrv.h" #include "winspool.h" diff --git a/dlls/winmm/mmsystem.c b/dlls/winmm/mmsystem.c index b45fffcb754..f25b6204637 100644 --- a/dlls/winmm/mmsystem.c +++ b/dlls/winmm/mmsystem.c @@ -32,6 +32,8 @@ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "mmsystem.h" #include "winbase.h" diff --git a/dlls/winmm/wineoss/mixer.c b/dlls/winmm/wineoss/mixer.c index b599f07112e..685e8a6f473 100644 --- a/dlls/winmm/wineoss/mixer.c +++ b/dlls/winmm/wineoss/mixer.c @@ -36,6 +36,8 @@ # include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "mmddk.h" #include "oss.h" diff --git a/dlls/winmm/winmm.c b/dlls/winmm/winmm.c index ebd7989ec79..a7212347865 100644 --- a/dlls/winmm/winmm.c +++ b/dlls/winmm/winmm.c @@ -30,6 +30,8 @@ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "mmsystem.h" #include "winbase.h" #include "wine/winuser16.h" /* FIXME: should be removed, only used for UserYield16 */ diff --git a/dlls/winspool/info.c b/dlls/winspool/info.c index 6c6b625ff50..3918a9bd928 100644 --- a/dlls/winspool/info.c +++ b/dlls/winspool/info.c @@ -24,7 +24,6 @@ #include "config.h" #include "wine/port.h" -#include "wine/library.h" #include #include @@ -37,6 +36,10 @@ # define CUPS_SONAME "libcups.so" # endif #endif + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT +#include "wine/library.h" #include "winspool.h" #include "winbase.h" #include "winerror.h" diff --git a/dlls/x11drv/dga2.c b/dlls/x11drv/dga2.c index 3b12b3d0867..2d4f069b6b0 100644 --- a/dlls/x11drv/dga2.c +++ b/dlls/x11drv/dga2.c @@ -22,6 +22,8 @@ #ifdef HAVE_LIBXXF86DGA2 +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "ts_xlib.h" #include diff --git a/dlls/x11drv/keyboard.c b/dlls/x11drv/keyboard.c index f544cabb933..13d3dfc907b 100644 --- a/dlls/x11drv/keyboard.c +++ b/dlls/x11drv/keyboard.c @@ -38,6 +38,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "wingdi.h" #include "wine/winuser16.h" diff --git a/dlls/x11drv/mouse.c b/dlls/x11drv/mouse.c index 40b0781a8ca..6b6c9149f4e 100644 --- a/dlls/x11drv/mouse.c +++ b/dlls/x11drv/mouse.c @@ -25,6 +25,8 @@ #include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "wine/winuser16.h" diff --git a/dlls/x11drv/x11ddraw.c b/dlls/x11drv/x11ddraw.c index a6b09797178..7f563cbdb28 100644 --- a/dlls/x11drv/x11ddraw.c +++ b/dlls/x11drv/x11ddraw.c @@ -22,6 +22,8 @@ #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "ts_xlib.h" #include "x11drv.h" #include "x11ddraw.h" diff --git a/files/drive.c b/files/drive.c index ab8b8b00b6f..c5c4b39330a 100644 --- a/files/drive.c +++ b/files/drive.c @@ -54,6 +54,8 @@ # endif #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "winternl.h" #include "wine/winbase16.h" /* for GetCurrentTask */ diff --git a/files/file.c b/files/file.c index 0031281423b..5c911b38c45 100644 --- a/files/file.c +++ b/files/file.c @@ -55,6 +55,8 @@ # include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "windef.h" #include "winbase.h" diff --git a/include/winnt.h b/include/winnt.h index 7e7deb3f2f4..34b8f02ee9d 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -136,19 +136,27 @@ /* Anonymous union/struct handling */ -#ifdef __WINESRC__ -# define NONAMELESSSTRUCT -# define NONAMELESSUNION -#else -/* Anonymous struct support starts with gcc 2.96 or gcc/g++ 3.x */ -# if !defined(NONAMELESSSTRUCT) && (defined(__GNUC__) && ((__GNUC__ < 2) || ((__GNUC__ == 2) && (defined(__cplusplus) || (__GNUC_MINOR__ < 96))))) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) +#ifndef NONAMELESSSTRUCT +# ifdef __GNUC__ + /* Anonymous struct support starts with gcc 2.96 or gcc/g++ 3.x */ +# if (__GNUC__ < 2) || ((__GNUC__ == 2) && (defined(__cplusplus) || (__GNUC_MINOR__ < 96))) +# define NONAMELESSSTRUCT +# endif +# elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) # define NONAMELESSSTRUCT # endif -/* Anonymous unions support starts with gcc 2.96/g++ 2.95 */ -# if !defined(NONAMELESSUNION) && (defined(__GNUC__) && ((__GNUC__ < 2) || ((__GNUC__ == 2) && ((__GNUC_MINOR__ < 95) || ((__GNUC_MINOR__ == 95) && !defined(__cplusplus)))))) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) +#endif /* NONAMELESSSTRUCT */ + +#ifndef NONAMELESSUNION +# ifdef __GNUC__ + /* Anonymous unions support starts with gcc 2.96/g++ 2.95 */ +# if (__GNUC__ < 2) || ((__GNUC__ == 2) && ((__GNUC_MINOR__ < 95) || ((__GNUC_MINOR__ == 95) && !defined(__cplusplus)))) +# define NONAMELESSUNION +# endif +# elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) # define NONAMELESSUNION # endif -#endif +#endif /* NONAMELESSUNION */ #ifndef NONAMELESSSTRUCT #define DUMMYSTRUCTNAME diff --git a/library/loader.c b/library/loader.c index 1f808279fcc..d97043580db 100644 --- a/library/loader.c +++ b/library/loader.c @@ -30,6 +30,8 @@ #include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "wine/library.h" diff --git a/loader/pe_resource.c b/loader/pe_resource.c index a50ff04dbe0..aec210817ed 100644 --- a/loader/pe_resource.c +++ b/loader/pe_resource.c @@ -29,6 +29,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "wine/unicode.h" #include "windef.h" #include "winnls.h" diff --git a/memory/heap.c b/memory/heap.c index 7916e5c064f..6c352069397 100644 --- a/memory/heap.c +++ b/memory/heap.c @@ -26,6 +26,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "wine/winbase16.h" #include "winerror.h" diff --git a/memory/virtual.c b/memory/virtual.c index 2519bb5c8ed..6051035bdcf 100644 --- a/memory/virtual.c +++ b/memory/virtual.c @@ -29,6 +29,8 @@ # include #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winnls.h" #include "winbase.h" #include "winternl.h" diff --git a/misc/cpu.c b/misc/cpu.c index 578dd80d9cb..26bfbb1eabe 100644 --- a/misc/cpu.c +++ b/misc/cpu.c @@ -26,6 +26,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "winnt.h" #include "winternl.h" diff --git a/misc/system.c b/misc/system.c index 1cc64bd6ffb..fdd83818b2e 100644 --- a/misc/system.c +++ b/misc/system.c @@ -18,6 +18,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "wingdi.h" #include "wine/winbase16.h" diff --git a/msdos/vxd.c b/msdos/vxd.c index 4c950b185bc..b6801430c5f 100644 --- a/msdos/vxd.c +++ b/msdos/vxd.c @@ -28,6 +28,9 @@ #ifdef HAVE_UNISTD_H # include #endif + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winbase.h" #include "windef.h" #include "winternl.h" diff --git a/scheduler/timer.c b/scheduler/timer.c index 41936bd9b36..b67563c2d1c 100644 --- a/scheduler/timer.c +++ b/scheduler/timer.c @@ -23,6 +23,9 @@ #include #include + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "winerror.h" #include "winnls.h" #include "wine/unicode.h" diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index e890620ef96..9d62f467883 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -38,6 +38,8 @@ #endif #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winedump.h" #include "pe.h" diff --git a/win32/newfns.c b/win32/newfns.c index 8613cc6d8af..16e66ae1adb 100644 --- a/win32/newfns.c +++ b/win32/newfns.c @@ -32,6 +32,9 @@ at a later date. */ #ifdef HAVE_UNISTD_H # include #endif + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winbase.h" #include "winnls.h" diff --git a/windows/input.c b/windows/input.c index f6bd56194d9..9ab920a015c 100644 --- a/windows/input.c +++ b/windows/input.c @@ -28,6 +28,8 @@ #include #include +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include "windef.h" #include "winnls.h" #include "winbase.h" -- 2.11.4.GIT