mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
Merge pull request #8719 from jamessan/libuv-errno
test: Rename includes/pre/uv-errno.h to includes/pre/uv.h
This commit is contained in:
commit
9adb6ed74a
@ -7,6 +7,13 @@ foreach(gen_include ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES})
|
||||
list(APPEND gen_cflags ${CMAKE_INCLUDE_FLAG_C}${gen_include})
|
||||
endforeach()
|
||||
|
||||
get_directory_property(gen_cdefs COMPILE_DEFINITIONS)
|
||||
foreach(gen_cdef ${gen_cdefs})
|
||||
if(NOT ${gen_cdef} MATCHES "INCLUDE_GENERATED_DECLARATIONS")
|
||||
list(APPEND gen_cflags "-D${gen_cdef}")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
foreach(hfile ${PRE_HEADERS})
|
||||
string(REGEX REPLACE ^pre/ post/ post_hfile ${hfile})
|
||||
get_filename_component(hdir ${CMAKE_CURRENT_BINARY_DIR}/${post_hfile} PATH)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <uv-errno.h>
|
||||
#include <uv.h>
|
||||
|
||||
static const int kUV_ENOENT = UV_ENOENT;
|
||||
static const int kUV_EEXIST = UV_EEXIST;
|
@ -27,7 +27,7 @@ cimport('./src/nvim/fileio.h')
|
||||
local fs = cimport('./src/nvim/os/os.h', './src/nvim/path.h')
|
||||
cppimport('sys/stat.h')
|
||||
cppimport('fcntl.h')
|
||||
cppimport('uv-errno.h')
|
||||
cppimport('uv.h')
|
||||
|
||||
local s = ''
|
||||
for i = 0, 255 do
|
||||
|
Loading…
Reference in New Issue
Block a user