Alex Henrie : gdi32: Avoid using GCC's typeof extension.

Alexandre Julliard julliard at winehq.org
Fri Sep 21 17:04:30 CDT 2018


Module: wine
Branch: master
Commit: 47ab4904276be87297a851a8468ff3966afc8584
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=47ab4904276be87297a851a8468ff3966afc8584

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Wed Sep 19 22:44:15 2018 -0600

gdi32: Avoid using GCC's typeof extension.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 ce60d11..8920b73 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




More information about the wine-cvs mailing list