Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them.

This commit is contained in:
Dimitrie O. Paun 2003-01-07 20:36:20 +00:00 committed by Alexandre Julliard
parent 60d1134d25
commit 297f3d898d
99 changed files with 244 additions and 14 deletions

View File

@ -37,6 +37,8 @@
#include <ctype.h> #include <ctype.h>
#include <limits.h> #include <limits.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "commctrl.h" #include "commctrl.h"
#include "objbase.h" #include "objbase.h"
#include "winbase.h" #include "winbase.h"

View File

@ -25,6 +25,8 @@
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "commctrl.h" #include "commctrl.h"
#include "prsht.h" #include "prsht.h"

View File

@ -47,6 +47,8 @@
#include <limits.h> #include <limits.h>
#include <stdlib.h> #include <stdlib.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
#include "commctrl.h" #include "commctrl.h"

View File

@ -59,6 +59,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "winternl.h" #include "winternl.h"
#include "winnls.h" #include "winnls.h"

View File

@ -22,6 +22,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winnls.h" #include "winnls.h"

View File

@ -24,6 +24,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"

View File

@ -19,6 +19,9 @@
*/ */
#include <math.h> #include <math.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winuser.h" #include "winuser.h"

View File

@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winuser.h" #include "winuser.h"

View File

@ -19,6 +19,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "objbase.h" #include "objbase.h"
#include "ddraw.h" #include "ddraw.h"

View File

@ -23,6 +23,8 @@
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winerror.h" #include "winerror.h"
#include "objbase.h" #include "objbase.h"

View File

@ -22,6 +22,8 @@
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winerror.h" #include "winerror.h"
#include "objbase.h" #include "objbase.h"

View File

@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "config.h" #include "config.h"
#include "windef.h" #include "windef.h"
#include "winerror.h" #include "winerror.h"

View File

@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "config.h" #include "config.h"
#include "windef.h" #include "windef.h"
#include "winerror.h" #include "winerror.h"

View File

@ -22,6 +22,8 @@
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winerror.h" #include "winerror.h"
#include "objbase.h" #include "objbase.h"

View File

@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "config.h" #include "config.h"
#include "windef.h" #include "windef.h"
#include "winerror.h" #include "winerror.h"

View File

@ -31,6 +31,8 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "ddraw.h" #include "ddraw.h"
#include "d3d.h" #include "d3d.h"

View File

@ -18,12 +18,13 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/debug.h"
#include "ddraw.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "ddraw.h"
#include "ddraw_private.h" #include "ddraw_private.h"
#include "ddraw/main.h" #include "ddraw/main.h"
#include "ddraw/user.h" #include "ddraw/user.h"
@ -32,6 +33,7 @@
#include "dsurface/main.h" #include "dsurface/main.h"
#include "dsurface/dib.h" #include "dsurface/dib.h"
#include "dsurface/user.h" #include "dsurface/user.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(ddraw); WINE_DEFAULT_DEBUG_CHANNEL(ddraw);

View File

@ -27,6 +27,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "d3d.h" #include "d3d.h"
#include "ddraw.h" #include "ddraw.h"
#include "winerror.h" #include "winerror.h"

View File

@ -24,6 +24,9 @@
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "bitmap.h" #include "bitmap.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -27,6 +27,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "ddraw.h" #include "ddraw.h"
#include "d3d.h" #include "d3d.h"

View File

@ -22,6 +22,8 @@
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "wine/debug.h" #include "wine/debug.h"
#include "ddraw_private.h" #include "ddraw_private.h"
#include "ddraw/user.h" #include "ddraw/user.h"

View File

@ -19,11 +19,13 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include "config.h" #include "config.h"
#include "winerror.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h"
#include "mesa_private.h" #include "mesa_private.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "ddraw_private.h" #include "ddraw_private.h"

View File

@ -26,6 +26,8 @@
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "d3d.h" #include "d3d.h"
#include "ddraw.h" #include "ddraw.h"
#include "winerror.h" #include "winerror.h"

View File

@ -24,6 +24,8 @@
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winerror.h" #include "winerror.h"
#include "winbase.h" #include "winbase.h"

View File

@ -24,6 +24,9 @@
*/ */
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "wine/debug.h" #include "wine/debug.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"

View File

@ -20,6 +20,8 @@
*/ */
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winerror.h" #include "winerror.h"
#include "winreg.h" #include "winreg.h"

View File

@ -22,6 +22,9 @@
/* NOTE: Methods with the NS_ prefix are name server methods */ /* NOTE: Methods with the NS_ prefix are name server methods */
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "winnls.h" #include "winnls.h"
#include "wine/unicode.h" #include "wine/unicode.h"

View File

@ -49,6 +49,8 @@
#include <string.h> #include <string.h>
#include <math.h> /* Insomnia - pow() function */ #include <math.h> /* Insomnia - pow() function */
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"

View File

@ -31,6 +31,9 @@
#ifdef HAVE_SYS_TIMES_H #ifdef HAVE_SYS_TIMES_H
# include <sys/times.h> # include <sys/times.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "file.h" #include "file.h"
#include "winternl.h" #include "winternl.h"
#include "winerror.h" #include "winerror.h"

View File

@ -61,6 +61,8 @@
# include <sys/cdio.h> # include <sys/cdio.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winternl.h" #include "winternl.h"
#include "winioctl.h" #include "winioctl.h"
#include "ntddstor.h" #include "ntddstor.h"

View File

@ -29,6 +29,9 @@
#ifdef HAVE_SYS_ERRNO_H #ifdef HAVE_SYS_ERRNO_H
#include <sys/errno.h> #include <sys/errno.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "wine/unicode.h" #include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/server.h" #include "wine/server.h"

View File

@ -26,6 +26,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winternl.h" #include "winternl.h"
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "winbase.h" #include "winbase.h"

View File

@ -34,6 +34,9 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winternl.h" #include "winternl.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -38,6 +38,8 @@
#include <sys/mman.h> #include <sys/mman.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winternl.h" #include "winternl.h"
#include "global.h" #include "global.h"
#include "wine/library.h" #include "wine/library.h"

View File

@ -20,6 +20,9 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
#include "wine/unicode.h" #include "wine/unicode.h"

View File

@ -61,6 +61,8 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"

View File

@ -29,6 +29,8 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "objbase.h" #include "objbase.h"
#include "ole2.h" #include "ole2.h"

View File

@ -20,6 +20,9 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -45,6 +45,9 @@
*/ */
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"

View File

@ -20,6 +20,9 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
#include "winnls.h" #include "winnls.h"

View File

@ -28,6 +28,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "objbase.h" #include "objbase.h"
#include "ole2.h" #include "ole2.h"

View File

@ -20,6 +20,9 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "winbase.h" #include "winbase.h"
#include "winnls.h" #include "winnls.h"

View File

@ -24,6 +24,8 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "objbase.h" #include "objbase.h"

View File

@ -28,6 +28,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "commctrl.h" #include "commctrl.h"
#include "ole2.h" #include "ole2.h"
#include "ole2ver.h" #include "ole2ver.h"

View File

@ -19,6 +19,9 @@
*/ */
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
#include "winuser.h" #include "winuser.h"

View File

@ -19,6 +19,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winuser.h" #include "winuser.h"

View File

@ -37,6 +37,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "objbase.h" #include "objbase.h"
#include "ole2.h" #include "ole2.h"

View File

@ -25,6 +25,8 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "objbase.h" #include "objbase.h"
#include "ole2.h" #include "ole2.h"

View File

@ -37,6 +37,8 @@
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
#include "objbase.h" #include "objbase.h"

View File

@ -22,11 +22,14 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
#include "winternl.h" #include "winternl.h"

View File

@ -30,6 +30,9 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winternl.h" #include "winternl.h"
#include "winerror.h" #include "winerror.h"

View File

@ -29,6 +29,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" /* for lstrlenW() and the likes */ #include "winbase.h" /* for lstrlenW() and the likes */
#include "winnls.h" #include "winnls.h"
#include "wine/unicode.h" #include "wine/unicode.h"

View File

@ -22,6 +22,9 @@
*/ */
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"

View File

@ -42,6 +42,9 @@
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"

View File

@ -26,6 +26,8 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "winnls.h" #include "winnls.h"
#include "winreg.h" #include "winreg.h"

View File

@ -60,6 +60,8 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "winnls.h" /* for PRIMARYLANGID */ #include "winnls.h" /* for PRIMARYLANGID */
#include "winreg.h" /* for HKEY_LOCAL_MACHINE */ #include "winreg.h" /* for HKEY_LOCAL_MACHINE */

View File

@ -46,6 +46,8 @@
# include <float.h> # include <float.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "oleauto.h" #include "oleauto.h"
#include "heap.h" #include "heap.h"

View File

@ -27,6 +27,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"

View File

@ -24,6 +24,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "wine/debug.h" #include "wine/debug.h"
#include "undocshell.h" #include "undocshell.h"
#include "shlguid.h" #include "shlguid.h"

View File

@ -21,6 +21,8 @@
*/ */
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "pidl.h" #include "pidl.h"
#include "winerror.h" #include "winerror.h"
#include "shell32_main.h" #include "shell32_main.h"

View File

@ -21,6 +21,8 @@
#include <ctype.h> #include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winnls.h" #include "winnls.h"
#include "winerror.h" #include "winerror.h"
#include "winreg.h" #include "winreg.h"

View File

@ -27,6 +27,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "winbase.h" #include "winbase.h"
#include "winreg.h" #include "winreg.h"

View File

@ -27,6 +27,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "winbase.h" #include "winbase.h"
#include "winreg.h" #include "winreg.h"

View File

@ -27,6 +27,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "winbase.h" #include "winbase.h"
#include "winreg.h" #include "winreg.h"

View File

@ -20,6 +20,8 @@
*/ */
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "wine/debug.h" #include "wine/debug.h"
#include "pidl.h" #include "pidl.h"

View File

@ -20,6 +20,8 @@
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -19,6 +19,8 @@
*/ */
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
#include "winnls.h" #include "winnls.h"

View File

@ -29,6 +29,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"

View File

@ -21,6 +21,9 @@
#include "config.h" #include "config.h"
#include <stdlib.h> #include <stdlib.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "twain.h" #include "twain.h"
#include "twain_i.h" #include "twain_i.h"

View File

@ -26,6 +26,8 @@
#define COM_NO_WINDOWS_H #define COM_NO_WINDOWS_H
#include <stdio.h> #include <stdio.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winuser.h" #include "winuser.h"

View File

@ -31,6 +31,8 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "windef.h" #include "windef.h"
#include "winerror.h" #include "winerror.h"

View File

@ -29,6 +29,8 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "lzexpand.h" #include "lzexpand.h"

View File

@ -24,9 +24,11 @@
#include "config.h" #include "config.h"
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "miscemu.h" #include "miscemu.h"
/* #define DEBUG_INT */
#include "wine/debug.h" #include "wine/debug.h"
#include "winioctl.h" #include "winioctl.h"
#include "ntddstor.h" #include "ntddstor.h"

View File

@ -19,6 +19,9 @@
*/ */
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
#include "winuser.h" #include "winuser.h"

View File

@ -23,6 +23,9 @@
*/ */
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "psdrv.h" #include "psdrv.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "winuser.h" #include "winuser.h"

View File

@ -27,6 +27,8 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "gdi.h" #include "gdi.h"
#include "psdrv.h" #include "psdrv.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -21,6 +21,9 @@
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "gdi.h" #include "gdi.h"
#include "psdrv.h" #include "psdrv.h"
#include "winspool.h" #include "winspool.h"

View File

@ -32,6 +32,8 @@
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "mmsystem.h" #include "mmsystem.h"
#include "winbase.h" #include "winbase.h"

View File

@ -36,6 +36,8 @@
# include <sys/ioctl.h> # include <sys/ioctl.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "mmddk.h" #include "mmddk.h"
#include "oss.h" #include "oss.h"

View File

@ -30,6 +30,8 @@
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "mmsystem.h" #include "mmsystem.h"
#include "winbase.h" #include "winbase.h"
#include "wine/winuser16.h" /* FIXME: should be removed, only used for UserYield16 */ #include "wine/winuser16.h" /* FIXME: should be removed, only used for UserYield16 */

View File

@ -24,7 +24,6 @@
#include "config.h" #include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include "wine/library.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -37,6 +36,10 @@
# define CUPS_SONAME "libcups.so" # define CUPS_SONAME "libcups.so"
# endif # endif
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "wine/library.h"
#include "winspool.h" #include "winspool.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"

View File

@ -22,6 +22,8 @@
#ifdef HAVE_LIBXXF86DGA2 #ifdef HAVE_LIBXXF86DGA2
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "ts_xlib.h" #include "ts_xlib.h"
#include <X11/extensions/xf86dga.h> #include <X11/extensions/xf86dga.h>

View File

@ -38,6 +38,8 @@
#include <ctype.h> #include <ctype.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "wingdi.h" #include "wingdi.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"

View File

@ -25,6 +25,8 @@
#include <X11/extensions/xf86dga.h> #include <X11/extensions/xf86dga.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"

View File

@ -22,6 +22,8 @@
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "ts_xlib.h" #include "ts_xlib.h"
#include "x11drv.h" #include "x11drv.h"
#include "x11ddraw.h" #include "x11ddraw.h"

View File

@ -54,6 +54,8 @@
# endif # endif
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "winternl.h" #include "winternl.h"
#include "wine/winbase16.h" /* for GetCurrentTask */ #include "wine/winbase16.h" /* for GetCurrentTask */

View File

@ -55,6 +55,8 @@
# include <utime.h> # include <utime.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"

View File

@ -136,19 +136,27 @@
/* Anonymous union/struct handling */ /* Anonymous union/struct handling */
#ifdef __WINESRC__ #ifndef NONAMELESSSTRUCT
# define NONAMELESSSTRUCT # ifdef __GNUC__
# define NONAMELESSUNION /* Anonymous struct support starts with gcc 2.96 or gcc/g++ 3.x */
#else # if (__GNUC__ < 2) || ((__GNUC__ == 2) && (defined(__cplusplus) || (__GNUC_MINOR__ < 96)))
/* Anonymous struct support starts with gcc 2.96 or gcc/g++ 3.x */ # define NONAMELESSSTRUCT
# if !defined(NONAMELESSSTRUCT) && (defined(__GNUC__) && ((__GNUC__ < 2) || ((__GNUC__ == 2) && (defined(__cplusplus) || (__GNUC_MINOR__ < 96))))) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) # endif
# elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
# define NONAMELESSSTRUCT # define NONAMELESSSTRUCT
# endif # endif
/* Anonymous unions support starts with gcc 2.96/g++ 2.95 */ #endif /* NONAMELESSSTRUCT */
# if !defined(NONAMELESSUNION) && (defined(__GNUC__) && ((__GNUC__ < 2) || ((__GNUC__ == 2) && ((__GNUC_MINOR__ < 95) || ((__GNUC_MINOR__ == 95) && !defined(__cplusplus)))))) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#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 # define NONAMELESSUNION
# endif # endif
#endif #endif /* NONAMELESSUNION */
#ifndef NONAMELESSSTRUCT #ifndef NONAMELESSSTRUCT
#define DUMMYSTRUCTNAME #define DUMMYSTRUCTNAME

View File

@ -30,6 +30,8 @@
#include <sys/mman.h> #include <sys/mman.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "wine/library.h" #include "wine/library.h"

View File

@ -29,6 +29,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "wine/unicode.h" #include "wine/unicode.h"
#include "windef.h" #include "windef.h"
#include "winnls.h" #include "winnls.h"

View File

@ -26,6 +26,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "winerror.h" #include "winerror.h"

View File

@ -29,6 +29,8 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winnls.h" #include "winnls.h"
#include "winbase.h" #include "winbase.h"
#include "winternl.h" #include "winternl.h"

View File

@ -26,6 +26,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "winnt.h" #include "winnt.h"
#include "winternl.h" #include "winternl.h"

View File

@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "wingdi.h" #include "wingdi.h"
#include "wine/winbase16.h" #include "wine/winbase16.h"

View File

@ -28,6 +28,9 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winbase.h" #include "winbase.h"
#include "windef.h" #include "windef.h"
#include "winternl.h" #include "winternl.h"

View File

@ -23,6 +23,9 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winerror.h" #include "winerror.h"
#include "winnls.h" #include "winnls.h"
#include "wine/unicode.h" #include "wine/unicode.h"

View File

@ -38,6 +38,8 @@
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winedump.h" #include "winedump.h"
#include "pe.h" #include "pe.h"

View File

@ -32,6 +32,9 @@ at a later date. */
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winnls.h" #include "winnls.h"

View File

@ -28,6 +28,8 @@
#include <ctype.h> #include <ctype.h>
#include <assert.h> #include <assert.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "winnls.h" #include "winnls.h"
#include "winbase.h" #include "winbase.h"