Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
42874c62
Commit
42874c62
authored
Jan 12, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winnt.h: Use Common macro for __C89_NAMELESSUNION and __C89_NAMELESSSTRUCT.
parent
b1d9b7ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
30 deletions
+14
-30
winineti.h
include/winineti.h
+4
-4
winnt.h
include/winnt.h
+10
-26
No files found.
include/winineti.h
View file @
42874c62
...
...
@@ -46,9 +46,9 @@ typedef struct _INTERNET_CACHE_CONFIG_INFOA
BOOL
fPerUser
;
DWORD
dwSyncMode
;
DWORD
dwNumCachePaths
;
__C89_NAMELESS
UNION
union
__C89_NAMELESS
union
{
__C89_NAMELESS
STRUCT
struct
__C89_NAMELESS
struct
{
CHAR
CachePath
[
MAX_PATH
];
DWORD
dwCacheSize
;
...
...
@@ -68,9 +68,9 @@ typedef struct _INTERNET_CACHE_CONFIG_INFOW
BOOL
fPerUser
;
DWORD
dwSyncMode
;
DWORD
dwNumCachePaths
;
__C89_NAMELESS
UNION
union
__C89_NAMELESS
union
{
__C89_NAMELESS
STRUCT
struct
__C89_NAMELESS
struct
{
WCHAR
CachePath
[
MAX_PATH
];
DWORD
dwCacheSize
;
...
...
include/winnt.h
View file @
42874c62
...
...
@@ -230,42 +230,26 @@ extern "C" {
#define DUMMYUNIONNAME8 u8
#endif
/* !defined(NONAMELESSUNION) */
#ifndef __C89_NAMELESS
STRUCT
#ifndef __C89_NAMELESS
# if !defined(__WINESRC__) && !defined(WINE_NO_NAMELESS_EXTENSION)
# ifdef __GNUC__
/* Anonymous structs support starts with gcc 2.96/g++ 2.95 */
# if (__GNUC__ > 2) || ((__GNUC__ == 2) && ((__GNUC_MINOR__ > 95) || ((__GNUC_MINOR__ == 95) && defined(__cplusplus))))
# define __C89_NAMELESS
STRUCT
__extension__
# define __C89_NAMELESS __extension__
# endif
# elif defined(_MSC_VER)
# define __C89_NAMELESS
STRUCT
# define __C89_NAMELESS
# endif
# endif
# ifdef __C89_NAMELESSSTRUCT
# define __C89_NAMELESSSTRUCTNAME
# else
# define __C89_NAMELESSSTRUCT
# define __C89_NAMELESSSTRUCTNAME DUMMYSTRUCTNAME
# endif
#endif
#ifndef __C89_NAMELESSUNION
# if !defined(__WINESRC__) && !defined(WINE_NO_NAMELESS_EXTENSION)
# 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 __C89_NAMELESSUNION __extension__
# endif
# elif defined(_MSC_VER)
# define __C89_NAMELESSUNION
# endif
# endif
# ifdef __C89_NAMELESSUNION
# define __C89_NAMELESSUNIONNAME
# else
# define __C89_NAMELESSUNION
# define __C89_NAMELESSUNIONNAME DUMMYUNIONNAME
# endif
#ifdef __C89_NAMELESS
# define __C89_NAMELESSSTRUCTNAME
# define __C89_NAMELESSUNIONNAME
#else
# define __C89_NAMELESS
# define __C89_NAMELESSSTRUCTNAME DUMMYSTRUCTNAME
# define __C89_NAMELESSUNIONNAME DUMMYUNIONNAME
#endif
/* C99 restrict support */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment