diff options
| author | Juanma Barranquero | 2006-11-08 01:06:45 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-11-08 01:06:45 +0000 |
| commit | 2dc07a1273fe9057a4c934dc8474fd0432213455 (patch) | |
| tree | b84f4db8107d4d44ff2311f8131f4a69b77edfeb /lib-src | |
| parent | 947612be2c71d2478179694e8dfa538b9e8e07c1 (diff) | |
| download | emacs-2dc07a1273fe9057a4c934dc8474fd0432213455.tar.gz emacs-2dc07a1273fe9057a4c934dc8474fd0432213455.zip | |
(get_server_config): Declare set_fg as FARPROC to avoid a compiler warning.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 510 | 510 | ||
| 511 | if (hUser32 = LoadLibrary ("user32.dll")) | 511 | if (hUser32 = LoadLibrary ("user32.dll")) |
| 512 | { | 512 | { |
| 513 | void (*set_fg)(DWORD); | 513 | FARPROC set_fg; |
| 514 | if (set_fg = GetProcAddress (hUser32, "AllowSetForegroundWindow")) | 514 | if (set_fg = GetProcAddress (hUser32, "AllowSetForegroundWindow")) |
| 515 | set_fg (atoi (pid)); | 515 | set_fg (atoi (pid)); |
| 516 | FreeLibrary (hUser32); | 516 | FreeLibrary (hUser32); |