Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
61350375
Unverified
Commit
61350375
authored
Jan 16, 2020
by
Rémi Verschelde
Committed by
GitHub
Jan 16, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #35193 from akien-mga/i-live-in-the-void
MinGW: Avoid GCC -Wcast-function-type warnings on GetProcAddress
parents
a2c90fe2
e33914e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
context_gl_windows.cpp
platform/windows/context_gl_windows.cpp
+5
-0
joypad_windows.cpp
platform/windows/joypad_windows.cpp
+5
-0
os_windows.cpp
platform/windows/os_windows.cpp
+5
-0
No files found.
platform/windows/context_gl_windows.cpp
View file @
61350375
...
...
@@ -43,6 +43,11 @@
#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
#if defined(__GNUC__)
// Workaround GCC warning from -Wcast-function-type.
#define wglGetProcAddress (void *)wglGetProcAddress
#endif
typedef
HGLRC
(
APIENTRY
*
PFNWGLCREATECONTEXTATTRIBSARBPROC
)(
HDC
,
HGLRC
,
const
int
*
);
void
ContextGL_Windows
::
release_current
()
{
...
...
platform/windows/joypad_windows.cpp
View file @
61350375
...
...
@@ -37,6 +37,11 @@
#define __builtin_bswap32 _byteswap_ulong
#endif
#if defined(__GNUC__)
// Workaround GCC warning from -Wcast-function-type.
#define GetProcAddress (void *)GetProcAddress
#endif
DWORD
WINAPI
_xinput_get_state
(
DWORD
dwUserIndex
,
XINPUT_STATE
*
pState
)
{
return
ERROR_DEVICE_NOT_CONNECTED
;
}
...
...
platform/windows/os_windows.cpp
View file @
61350375
...
...
@@ -74,6 +74,11 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
#define WM_POINTERUPDATE 0x0245
#endif
#if defined(__GNUC__)
// Workaround GCC warning from -Wcast-function-type.
#define GetProcAddress (void *)GetProcAddress
#endif
typedef
struct
{
int
count
;
int
screen
;
...
...
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