mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
build(windows): fix target check-single-includes
Add missing includes and exclude os-specific files depending on platform when using the target.
This commit is contained in:
parent
bf0d7ed1f6
commit
d56ddf9583
@ -676,12 +676,17 @@ function(get_test_target prefix sfile relative_path_var target_var)
|
|||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
set(NO_SINGLE_CHECK_HEADERS
|
if(WIN32)
|
||||||
os/win_defs.h
|
set(NO_SINGLE_CHECK_HEADERS
|
||||||
os/pty_process_win.h
|
os/pty_process_unix.h
|
||||||
os/pty_conpty_win.h
|
os/unix_defs.h)
|
||||||
os/os_win_console.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})
|
foreach(hfile ${NVIM_HEADERS})
|
||||||
get_test_target(test-includes "${hfile}" relative_path texe)
|
get_test_target(test-includes "${hfile}" relative_path texe)
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#ifndef NVIM_OS_PTY_CONPTY_WIN_H
|
#ifndef NVIM_OS_PTY_CONPTY_WIN_H
|
||||||
#define 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
|
#ifndef HPCON
|
||||||
# define HPCON VOID *
|
# define HPCON VOID *
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user