neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit d56ddf95839204354d824c06f1017a8b77aea827
parent bf0d7ed1f6b57d98f01b105042fbbbe5dc64d0cb
Author: dundargoc <gocundar@gmail.com>
Date:   Thu,  4 Aug 2022 12:21:14 +0200

build(windows): fix target check-single-includes

Add missing includes and exclude os-specific files depending on platform
when using the target.

Diffstat:
Msrc/nvim/CMakeLists.txt | 17+++++++++++------
Msrc/nvim/os/pty_conpty_win.h | 3+++
2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt @@ -676,12 +676,17 @@ function(get_test_target prefix sfile relative_path_var target_var) endif() endfunction() -set(NO_SINGLE_CHECK_HEADERS - os/win_defs.h - os/pty_process_win.h - os/pty_conpty_win.h - os/os_win_console.h -) +if(WIN32) + set(NO_SINGLE_CHECK_HEADERS + os/pty_process_unix.h + os/unix_defs.h) +else() + set(NO_SINGLE_CHECK_HEADERS + os/win_defs.h + os/pty_process_win.h + os/pty_conpty_win.h + os/os_win_console.h) +endif() foreach(hfile ${NVIM_HEADERS}) get_test_target(test-includes "${hfile}" relative_path texe) diff --git a/src/nvim/os/pty_conpty_win.h b/src/nvim/os/pty_conpty_win.h @@ -1,6 +1,9 @@ #ifndef NVIM_OS_PTY_CONPTY_WIN_H #define NVIM_OS_PTY_CONPTY_WIN_H +#include "nvim/lib/kvec.h" +#include "nvim/os/input.h" + #ifndef HPCON # define HPCON VOID * #endif