mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 23:43:15 +00:00
Fix invalid pointer conversions
C does not allow conversions between data pointers and function pointers. Yes, the name of the macro is reserved. That's something for a future commit to fix. Fixes #1703
This commit is contained in:
+6
-6
@@ -357,12 +357,12 @@ typedef void (APIENTRY * PFN_vkVoidFunction)(void);
|
||||
}
|
||||
|
||||
// Swaps the provided pointers
|
||||
#define _GLFW_SWAP_POINTERS(x, y) \
|
||||
{ \
|
||||
void* t; \
|
||||
t = x; \
|
||||
x = y; \
|
||||
y = t; \
|
||||
#define _GLFW_SWAP(type, x, y) \
|
||||
{ \
|
||||
type t; \
|
||||
t = x; \
|
||||
x = y; \
|
||||
y = t; \
|
||||
}
|
||||
|
||||
// Per-thread error structure
|
||||
|
||||
Reference in New Issue
Block a user