[PATCH v2] gdi32: Avoid using GCC's typeof extension

Alex Henrie alexhenrie24 at gmail.com
Wed Sep 19 23:44:15 CDT 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/gdi32/driver.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/gdi32/driver.c b/dlls/gdi32/driver.c
index ce60d110d9..8920b73f59 100644
--- a/dlls/gdi32/driver.c
+++ b/dlls/gdi32/driver.c
@@ -61,9 +61,9 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
 };
 static CRITICAL_SECTION driver_section = { &critsect_debug, -1, 0, 0, 0, 0 };
 
-static typeof(GetDesktopWindow) *pGetDesktopWindow;
-static typeof(GetSystemMetrics) *pGetSystemMetrics;
-static typeof(SetThreadDpiAwarenessContext) *pSetThreadDpiAwarenessContext;
+static HWND (WINAPI *pGetDesktopWindow)(void);
+static INT (WINAPI *pGetSystemMetrics)(INT);
+static DPI_AWARENESS_CONTEXT (WINAPI *pSetThreadDpiAwarenessContext)(DPI_AWARENESS_CONTEXT);
 
 /**********************************************************************
  *	     create_driver
-- 
2.19.0




More information about the wine-devel mailing list