#ifndef NVIM_OS_WIN_DEFS_H #define NVIM_OS_WIN_DEFS_H #include #include #include #define NAME_MAX _MAX_PATH #define TEMP_DIR_NAMES {"$TMP", "$TEMP", "$USERPROFILE", ""} #define TEMP_FILE_PATH_MAXLEN _MAX_PATH #define FNAME_ILLEGAL "\"*?><|" // Separator character for environment variables. #define ENV_SEPCHAR ';' #define USE_CRNL // We have our own RGB macro in macros.h. #undef RGB #ifdef _MSC_VER # ifndef inline # define inline __inline # endif # ifndef restrict # define restrict __restrict # endif # ifndef STDOUT_FILENO # define STDOUT_FILENO _fileno(stdout) # endif # ifndef STDERR_FILENO # define STDERR_FILENO _fileno(stderr) # endif # ifndef S_IXUSR # define S_IXUSR S_IEXEC # endif #endif #ifdef _MSC_VER typedef SSIZE_T ssize_t; #endif #ifndef SSIZE_MAX # ifdef _WIN64 # define SSIZE_MAX _I64_MAX # else # define SSIZE_MAX LONG_MAX # endif #endif #endif // NVIM_OS_WIN_DEFS_H