changeset 73816:6cc12a139829

(get_server_config): Declare set_fg as FARPROC to avoid a compiler warning.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 08 Nov 2006 01:06:45 +0000
parents 4611ce5e14a3
children 46d85206101d
files lib-src/emacsclient.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Wed Nov 08 00:13:00 2006 +0000
+++ b/lib-src/emacsclient.c	Wed Nov 08 01:06:45 2006 +0000
@@ -510,7 +510,7 @@
 
     if (hUser32 = LoadLibrary ("user32.dll"))
       {
-        void (*set_fg)(DWORD);
+        FARPROC set_fg;
         if (set_fg = GetProcAddress (hUser32, "AllowSetForegroundWindow"))
           set_fg (atoi (pid));
         FreeLibrary (hUser32);