Mercurial > pidgin
diff src/gtkspell.c @ 3630:9682c0e022c6
[gaim-migrate @ 3753]
Yeah this will probably break a lot of shit knowing my luck. But hey, I really don't care what people thnk.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 11 Oct 2002 03:14:01 +0000 |
parents | 0f8e4835d938 |
children |
line wrap: on
line diff
--- a/src/gtkspell.c Fri Oct 11 02:10:08 2002 +0000 +++ b/src/gtkspell.c Fri Oct 11 03:14:01 2002 +0000 @@ -19,9 +19,15 @@ #include <gtk/gtk.h> #include <sys/types.h> + +#ifndef _WIN32 #include <sys/wait.h> #include <sys/time.h> -#include <unistd.h> +#include <unistd.h> +#else +#include <io.h> +#endif + #include <stdio.h> #include <signal.h> #include <ctype.h> @@ -163,15 +169,18 @@ void gtkspell_stop() { +#ifndef _WIN32 if (gtkspell_running()) { kill(spell_pid, SIGHUP); spell_pid = 0; close(fd_read[0]); close(fd_write[1]); } +#endif } int gtkspell_start(char *path, char * args[]) { +#ifndef _WIN32 int fd_error[2]; if (gtkspell_running()) { @@ -268,6 +277,7 @@ /* put ispell into terse mode. * this makes it not respond on correctly spelled words. */ writetext("!\n"); +#endif /*!_WIN32*/ return 0; }