From 2dc07a1273fe9057a4c934dc8474fd0432213455 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Wed, 8 Nov 2006 01:06:45 +0000 Subject: [PATCH] (get_server_config): Declare set_fg as FARPROC to avoid a compiler warning. --- lib-src/emacsclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 3c3b27374fc..2ad3701e07a 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -510,7 +510,7 @@ get_server_config (server, authentication) if (hUser32 = LoadLibrary ("user32.dll")) { - void (*set_fg)(DWORD); + FARPROC set_fg; if (set_fg = GetProcAddress (hUser32, "AllowSetForegroundWindow")) set_fg (atoi (pid)); FreeLibrary (hUser32); -- 2.39.5