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
fcf545f4
Commit
fcf545f4
authored
Dec 14, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winapi: Use __alignof__ on clang.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
df446b9c
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
99 deletions
+11
-99
generated.c
dlls/gdi32/tests/generated.c
+1
-1
generated.c
dlls/kernel32/tests/generated.c
+1
-1
generated.c
dlls/ntdll/tests/generated.c
+1
-1
generated.c
dlls/rpcrt4/tests/generated.c
+1
-1
generated.c
dlls/shell32/tests/generated.c
+1
-1
generated.c
dlls/shlwapi/tests/generated.c
+1
-1
generated.c
dlls/urlmon/tests/generated.c
+1
-89
generated.c
dlls/user32/tests/generated.c
+1
-1
generated.c
dlls/wininet/tests/generated.c
+1
-1
generated.c
dlls/winmm/tests/generated.c
+1
-1
winapi_test
tools/winapi/winapi_test
+1
-1
No files found.
dlls/gdi32/tests/generated.c
View file @
fcf545f4
...
...
@@ -25,7 +25,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
|| defined(__clang__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
...
...
dlls/kernel32/tests/generated.c
View file @
fcf545f4
...
...
@@ -25,7 +25,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
|| defined(__clang__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
...
...
dlls/ntdll/tests/generated.c
View file @
fcf545f4
...
...
@@ -25,7 +25,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
|| defined(__clang__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
...
...
dlls/rpcrt4/tests/generated.c
View file @
fcf545f4
...
...
@@ -31,7 +31,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
|| defined(__clang__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
...
...
dlls/shell32/tests/generated.c
View file @
fcf545f4
...
...
@@ -32,7 +32,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
|| defined(__clang__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
...
...
dlls/shlwapi/tests/generated.c
View file @
fcf545f4
...
...
@@ -30,7 +30,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
|| defined(__clang__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
...
...
dlls/urlmon/tests/generated.c
View file @
fcf545f4
...
...
@@ -28,7 +28,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
|| defined(__clang__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
...
...
@@ -92,81 +92,41 @@ static void test_pack_IBindHost(void)
/* IBindHost */
}
static
void
test_pack_IBindHostVtbl
(
void
)
{
/* IBindHostVtbl */
}
static
void
test_pack_IBindStatusCallback
(
void
)
{
/* IBindStatusCallback */
}
static
void
test_pack_IBindStatusCallbackVtbl
(
void
)
{
/* IBindStatusCallbackVtbl */
}
static
void
test_pack_IBinding
(
void
)
{
/* IBinding */
}
static
void
test_pack_IBindingVtbl
(
void
)
{
/* IBindingVtbl */
}
static
void
test_pack_IInternetProtocolInfo
(
void
)
{
/* IInternetProtocolInfo */
}
static
void
test_pack_IInternetProtocolInfoVtbl
(
void
)
{
/* IInternetProtocolInfoVtbl */
}
static
void
test_pack_IInternetSession
(
void
)
{
/* IInternetSession */
}
static
void
test_pack_IInternetSessionVtbl
(
void
)
{
/* IInternetSessionVtbl */
}
static
void
test_pack_IPersistMoniker
(
void
)
{
/* IPersistMoniker */
}
static
void
test_pack_IPersistMonikerVtbl
(
void
)
{
/* IPersistMonikerVtbl */
}
static
void
test_pack_IWinInetHttpInfo
(
void
)
{
/* IWinInetHttpInfo */
}
static
void
test_pack_IWinInetHttpInfoVtbl
(
void
)
{
/* IWinInetHttpInfoVtbl */
}
static
void
test_pack_IWinInetInfo
(
void
)
{
/* IWinInetInfo */
}
static
void
test_pack_IWinInetInfoVtbl
(
void
)
{
/* IWinInetInfoVtbl */
}
static
void
test_pack_LPBINDHOST
(
void
)
{
/* LPBINDHOST */
...
...
@@ -346,81 +306,41 @@ static void test_pack_IBindHost(void)
/* IBindHost */
}
static
void
test_pack_IBindHostVtbl
(
void
)
{
/* IBindHostVtbl */
}
static
void
test_pack_IBindStatusCallback
(
void
)
{
/* IBindStatusCallback */
}
static
void
test_pack_IBindStatusCallbackVtbl
(
void
)
{
/* IBindStatusCallbackVtbl */
}
static
void
test_pack_IBinding
(
void
)
{
/* IBinding */
}
static
void
test_pack_IBindingVtbl
(
void
)
{
/* IBindingVtbl */
}
static
void
test_pack_IInternetProtocolInfo
(
void
)
{
/* IInternetProtocolInfo */
}
static
void
test_pack_IInternetProtocolInfoVtbl
(
void
)
{
/* IInternetProtocolInfoVtbl */
}
static
void
test_pack_IInternetSession
(
void
)
{
/* IInternetSession */
}
static
void
test_pack_IInternetSessionVtbl
(
void
)
{
/* IInternetSessionVtbl */
}
static
void
test_pack_IPersistMoniker
(
void
)
{
/* IPersistMoniker */
}
static
void
test_pack_IPersistMonikerVtbl
(
void
)
{
/* IPersistMonikerVtbl */
}
static
void
test_pack_IWinInetHttpInfo
(
void
)
{
/* IWinInetHttpInfo */
}
static
void
test_pack_IWinInetHttpInfoVtbl
(
void
)
{
/* IWinInetHttpInfoVtbl */
}
static
void
test_pack_IWinInetInfo
(
void
)
{
/* IWinInetInfo */
}
static
void
test_pack_IWinInetInfoVtbl
(
void
)
{
/* IWinInetInfoVtbl */
}
static
void
test_pack_LPBINDHOST
(
void
)
{
/* LPBINDHOST */
...
...
@@ -588,21 +508,13 @@ static void test_pack(void)
{
test_pack_BINDINFO
();
test_pack_IBindHost
();
test_pack_IBindHostVtbl
();
test_pack_IBindStatusCallback
();
test_pack_IBindStatusCallbackVtbl
();
test_pack_IBinding
();
test_pack_IBindingVtbl
();
test_pack_IInternetProtocolInfo
();
test_pack_IInternetProtocolInfoVtbl
();
test_pack_IInternetSession
();
test_pack_IInternetSessionVtbl
();
test_pack_IPersistMoniker
();
test_pack_IPersistMonikerVtbl
();
test_pack_IWinInetHttpInfo
();
test_pack_IWinInetHttpInfoVtbl
();
test_pack_IWinInetInfo
();
test_pack_IWinInetInfoVtbl
();
test_pack_LPBINDHOST
();
test_pack_LPBINDING
();
test_pack_LPBINDSTATUSCALLBACK
();
...
...
dlls/user32/tests/generated.c
View file @
fcf545f4
...
...
@@ -25,7 +25,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
|| defined(__clang__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
...
...
dlls/wininet/tests/generated.c
View file @
fcf545f4
...
...
@@ -29,7 +29,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
|| defined(__clang__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
...
...
dlls/winmm/tests/generated.c
View file @
fcf545f4
...
...
@@ -27,7 +27,7 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
# define _TYPE_ALIGNMENT(type) __alignof(type)
#elif defined(__GNUC__)
#elif defined(__GNUC__)
|| defined(__clang__)
# define _TYPE_ALIGNMENT(type) __alignof__(type)
#else
/*
...
...
tools/winapi/winapi_test
View file @
fcf545f4
...
...
@@ -544,7 +544,7 @@ sub output_header($$$) {
print
OUT
"\n"
;
print
OUT
"#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)\n"
;
print
OUT
"# define _TYPE_ALIGNMENT(type) __alignof(type)\n"
;
print
OUT
"#elif defined(__GNUC__)\n"
;
print
OUT
"#elif defined(__GNUC__)
|| defined(__clang__)
\n"
;
print
OUT
"# define _TYPE_ALIGNMENT(type) __alignof__(type)\n"
;
print
OUT
"#else\n"
;
print
OUT
"/*\n"
;
...
...
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