Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
42874c62
Commit
42874c62
authored
14 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
winnt.h: Use Common macro for __C89_NAMELESSUNION and __C89_NAMELESSSTRUCT.
parent
b1d9b7ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/winineti.h
+4
-4
4 additions, 4 deletions
include/winineti.h
include/winnt.h
+10
-26
10 additions, 26 deletions
include/winnt.h
with
14 additions
and
30 deletions
include/winineti.h
+
4
−
4
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
;
...
...
This diff is collapsed.
Click to expand it.
include/winnt.h
+
10
−
26
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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment