diff options
Diffstat (limited to 'src/os_win32.c')
-rw-r--r-- | src/os_win32.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/os_win32.c b/src/os_win32.c index 55d8e6ba1..cac82230d 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -5039,13 +5039,13 @@ mch_start_job(char *cmd, job_T *job) STARTUPINFO si; PROCESS_INFORMATION pi; HANDLE jo; -#ifdef FEAT_CHANNEL - channel_T *channel; +# ifdef FEAT_CHANNEL + channel_T *channel; channel = add_channel(); if (channel == NULL) return; -#endif +# endif jo = CreateJobObject(NULL, NULL); if (jo == NULL) @@ -5085,24 +5085,24 @@ mch_start_job(char *cmd, job_T *job) job->jv_job_object = jo; job->jv_status = JOB_STARTED; -#ifdef FEAT_CHANNEL -# if 0 +# ifdef FEAT_CHANNEL +# if 0 /* TODO: connect stdin/stdout/stderr */ job->jv_channel = channel; channel_set_pipes(channel, fd_in[1], fd_out[0], fd_err[0]); channel_set_job(channel, job); -# ifdef FEAT_GUI +# ifdef FEAT_GUI channel_gui_register(channel); +# endif # endif # endif -#endif return; failed: -#ifdef FEAT_CHANNEL +# ifdef FEAT_CHANNEL channel_free(channel); -#endif +# endif } char * |