diff --git a/src/internal.h b/src/internal.h index 6d7587c8c..c7f37ed58 100644 --- a/src/internal.h +++ b/src/internal.h @@ -218,7 +218,7 @@ typedef void (APIENTRY * PFN_vkVoidFunction)(void); // Swaps the provided pointers #define _GLFW_SWAP_POINTERS(x, y) \ { \ - void* t; \ + __typeof__(x) t; \ t = x; \ x = y; \ y = t; \