mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
feffc65270
- Defined CMake checks for all headers in config.h.in - Removed headers checks that are not used anymore: sgtty.h sys/statfs.h libintl.h poll.h - Added UNIX check - Add some fatal checks + Check for setenv() and fail if it does not exist since our os layer just assumes it does + lstat is required by os_unix.c + sys/wait.h is required in UNIX - Removed entries for functions that are not being used: getcwd, getrlimit, getwd, nanosleep, sigaltstack, getwd, sigstack, fseeko - Replaced nearly all defines in config.h.in for functions with compile time checks - Add check for symbol FD_CLOEXEC - Add check for langinfo CODESET - HAVE_ICONV_H and HAVE_ICONV hold the expected checks but Neovim uses USE_ICONV define to actually decide whether to enable it - Removed checks that are no longer needed + USEMEMMOVE + _FILE_OFFSET_BITS + HAVE_ST_BLKSIZE + dlfcn.h
90 lines
2.2 KiB
C
90 lines
2.2 KiB
C
#define NEOVIM_VERSION_MAJOR @NEOVIM_VERSION_MAJOR@
|
|
#define NEOVIM_VERSION_MINOR @NEOVIM_VERSION_MINOR@
|
|
#define NEOVIM_VERSION_PATCH @NEOVIM_VERSION_PATCH@
|
|
|
|
#if @DEBUG@
|
|
#define DEBUG
|
|
#endif
|
|
|
|
#define SIZEOF_INT @SIZEOF_INT@
|
|
#define SIZEOF_LONG @SIZEOF_LONG@
|
|
#define SIZEOF_TIME_T @SIZEOF_TIME_T@
|
|
#define SIZEOF_OFF_T @SIZEOF_OFF_T@
|
|
|
|
#if @SIZEOF_VOID_PTR@ == 8
|
|
#define ARCH_64
|
|
#elif @SIZEOF_VOID_PTR@ == 4
|
|
#define ARCH_32
|
|
#endif
|
|
|
|
#cmakedefine HAVE__NSGETENVIRON
|
|
#cmakedefine HAVE_CRT_EXTERNS_H
|
|
#cmakedefine HAVE_DIRENT_H
|
|
#cmakedefine HAVE_FCHOWN
|
|
#cmakedefine HAVE_FCNTL_H
|
|
#cmakedefine HAVE_FD_CLOEXEC
|
|
#cmakedefine HAVE_FSEEKO
|
|
#cmakedefine HAVE_FSYNC
|
|
#cmakedefine HAVE_GETPWENT
|
|
#cmakedefine HAVE_GETPWNAM
|
|
#cmakedefine HAVE_GETPWUID
|
|
#cmakedefine HAVE_GETTIMEOFDAY
|
|
#cmakedefine HAVE_ICONV
|
|
#cmakedefine USE_ICONV
|
|
#cmakedefine HAVE_ICONV_H
|
|
#cmakedefine HAVE_LANGINFO_H
|
|
#cmakedefine HAVE_LIBGEN_H
|
|
#cmakedefine HAVE_LOCALE_H
|
|
#cmakedefine HAVE_LSTAT
|
|
#cmakedefine HAVE_NL_LANGINFO_CODESET
|
|
#cmakedefine HAVE_NL_MSG_CAT_CNTR
|
|
#cmakedefine HAVE_OPENDIR
|
|
#define HAVE_OSPEED 1
|
|
#cmakedefine HAVE_PUTENV
|
|
#cmakedefine HAVE_PWD_H
|
|
#cmakedefine HAVE_READLINK
|
|
// TODO: add proper cmake check
|
|
// #define HAVE_SELINUX 1
|
|
#cmakedefine HAVE_SETENV
|
|
#cmakedefine HAVE_SETPGID
|
|
#cmakedefine HAVE_SETSID
|
|
#cmakedefine HAVE_SIGACTION
|
|
#cmakedefine HAVE_SIGVEC
|
|
#cmakedefine HAVE_STRCASECMP
|
|
#cmakedefine HAVE_STRINGS_H
|
|
#cmakedefine HAVE_STRNCASECMP
|
|
#cmakedefine HAVE_STROPTS_H
|
|
#cmakedefine HAVE_SYS_IOCTL_H
|
|
#cmakedefine HAVE_SYS_PARAM_H
|
|
#cmakedefine HAVE_SYS_TIME_H
|
|
#cmakedefine HAVE_SYS_UTSNAME_H
|
|
#cmakedefine HAVE_SYS_WAIT_H
|
|
#cmakedefine HAVE_TERMCAP_H
|
|
#cmakedefine HAVE_TERMIOS_H
|
|
#cmakedefine HAVE_TERMIO_H
|
|
#define HAVE_TGETENT 1
|
|
#cmakedefine HAVE_UNISTD_H
|
|
#define HAVE_UP_BC_PC 1
|
|
#cmakedefine HAVE_UTIME
|
|
#cmakedefine HAVE_UTIME_H
|
|
#cmakedefine HAVE_UTIMES
|
|
#cmakedefine HAVE_WORKING_LIBINTL
|
|
#define RETSIGTYPE void
|
|
#define SIGRETURN return
|
|
#define TERMINFO 1
|
|
#define TGETENT_ZERO_ERR 0
|
|
#define TIME_WITH_SYS_TIME 1
|
|
#cmakedefine UNIX
|
|
#define USEMAN_S 1
|
|
|
|
#define FEAT_BROWSE
|
|
#define FEAT_CSCOPE
|
|
#define FEAT_MOUSE
|
|
#define FEAT_MOUSE_DEC
|
|
#define FEAT_MOUSE_NET
|
|
#define FEAT_MOUSE_SGR
|
|
#define FEAT_MOUSE_TTY
|
|
#define FEAT_MOUSE_URXVT
|
|
#define FEAT_MOUSE_XTERM
|
|
#define FEAT_TERMRESPONSE
|