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
f0605758
Commit
f0605758
authored
Nov 21, 2022
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Avoid using GCC's typeof extension.
typeof is not available in MSVC.
parent
c366fa43
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
20 deletions
+14
-20
force_feedback.c
dlls/dinput/tests/force_feedback.c
+5
-7
hotplug.c
dlls/dinput/tests/hotplug.c
+4
-6
joystick8.c
dlls/dinput/tests/joystick8.c
+5
-7
No files found.
dlls/dinput/tests/force_feedback.c
View file @
f0605758
...
...
@@ -48,13 +48,11 @@
#include "windows.gaming.input.forcefeedback.h"
#undef Size
#define MAKE_FUNC(f) static typeof(f) *p ## f
MAKE_FUNC
(
RoGetActivationFactory
);
MAKE_FUNC
(
RoInitialize
);
MAKE_FUNC
(
WindowsCreateString
);
MAKE_FUNC
(
WindowsDeleteString
);
MAKE_FUNC
(
WindowsGetStringRawBuffer
);
#undef MAKE_FUNC
static
HRESULT
WINAPI
(
*
pRoGetActivationFactory
)(
HSTRING
,
REFIID
,
void
**
);
static
HRESULT
WINAPI
(
*
pRoInitialize
)(
RO_INIT_TYPE
);
static
HRESULT
WINAPI
(
*
pWindowsCreateString
)(
const
WCHAR
*
,
UINT32
,
HSTRING
*
);
static
HRESULT
WINAPI
(
*
pWindowsDeleteString
)(
HSTRING
str
);
static
const
WCHAR
*
WINAPI
(
*
pWindowsGetStringRawBuffer
)(
HSTRING
,
UINT32
*
);
static
BOOL
load_combase_functions
(
void
)
{
...
...
dlls/dinput/tests/hotplug.c
View file @
f0605758
...
...
@@ -50,12 +50,10 @@
#include "windows.gaming.input.custom.h"
#undef Size
#define MAKE_FUNC(f) static typeof(f) *p ## f
MAKE_FUNC
(
RoGetActivationFactory
);
MAKE_FUNC
(
RoInitialize
);
MAKE_FUNC
(
WindowsCreateString
);
MAKE_FUNC
(
WindowsDeleteString
);
#undef MAKE_FUNC
static
HRESULT
WINAPI
(
*
pRoGetActivationFactory
)(
HSTRING
,
REFIID
,
void
**
);
static
HRESULT
WINAPI
(
*
pRoInitialize
)(
RO_INIT_TYPE
);
static
HRESULT
WINAPI
(
*
pWindowsCreateString
)(
const
WCHAR
*
,
UINT32
,
HSTRING
*
);
static
HRESULT
WINAPI
(
*
pWindowsDeleteString
)(
HSTRING
str
);
static
BOOL
load_combase_functions
(
void
)
{
...
...
dlls/dinput/tests/joystick8.c
View file @
f0605758
...
...
@@ -47,13 +47,11 @@
#include "windows.gaming.input.h"
#undef Size
#define MAKE_FUNC(f) static typeof(f) *p ## f
MAKE_FUNC
(
RoGetActivationFactory
);
MAKE_FUNC
(
RoInitialize
);
MAKE_FUNC
(
WindowsCreateString
);
MAKE_FUNC
(
WindowsDeleteString
);
MAKE_FUNC
(
WindowsGetStringRawBuffer
);
#undef MAKE_FUNC
static
HRESULT
WINAPI
(
*
pRoGetActivationFactory
)(
HSTRING
,
REFIID
,
void
**
);
static
HRESULT
WINAPI
(
*
pRoInitialize
)(
RO_INIT_TYPE
);
static
HRESULT
WINAPI
(
*
pWindowsCreateString
)(
const
WCHAR
*
,
UINT32
,
HSTRING
*
);
static
HRESULT
WINAPI
(
*
pWindowsDeleteString
)(
HSTRING
str
);
static
const
WCHAR
*
WINAPI
(
*
pWindowsGetStringRawBuffer
)(
HSTRING
,
UINT32
*
);
static
BOOL
load_combase_functions
(
void
)
{
...
...
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