aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/win_defs.h
Commit message (Collapse)AuthorAge
* build(IWYU): replace public-to-public mappings with pragmas (#26237)zeertzjq2023-11-27
|
* refactor: replace manual header guards with #pragma oncedundargoc2023-11-12
| | | | | It is less error-prone than manually defining header guards. Pretty much all compilers support it even if it's not part of the C standard.
* vim-patch:8.1.0941: macros for MS-Windows are inconsistent (#20215)dundargoc2022-09-18
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes vim/vim#3932) https://github.com/vim/vim/commit/4f97475d326c2773a78561fb874e4f23c25cbcd9
* vim-patch:8.2.4402: missing parenthesis may cause unexpected problemsBrian Leung2022-04-03
| | | | | | Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. https://github.com/vim/vim/commit/ae6f1d8b14c2f63811ee83ef14e32086fb3e9b83
* refactor: format header files with uncrustify #15877dundargoc2021-10-09
| | | | | | * refactor: format header files with uncrustify * fixup(justin): skip formatting of terminfo_defs.h * fixup: force winsock2 to be included first * fixup: simplify disable/enable directive to "uncrustify:off/on"
* vim-patch:8.1.0268: file type checking has too many #ifdef (#13182)tamago3242020-11-06
| | | | | Problem: File type checking has too many #ifdef. Solution: Always define the S_IF macros. (Ken Takata, closes vim/vim#3306) https://github.com/vim/vim/commit/d569bb029983cff947dce704e6f830276204c13f
* win/build: avoid "C4142: benign redefinition of type"Justin M. Keyes2018-06-06
| | | | ssize_t is already typedef's by libuv:uv-win.h
* build/MSVC: fix "C4005: RGB: macro redefinition"Justin M. Keyes2018-03-18
|
* build/msvc: Fix standard IO file number definitionsb-r-o-c-k2018-02-28
| | | | With MSVC, STDOUT_FILENO and STDERR_FILENO are defined as function calls instead of constants, meaning they can't be assigned to enum values. The enum was only used in one file, so it has been removed. A definition for STDIN_FILENO has been added that is consistent with the other two definitions.
* build/msvc: Add mode_t typedef to win_defs.hb-r-o-c-k2018-02-28
|
* win_defs.h: redefine RGB macro after undefiningJustin M. Keyes2017-08-06
| | | | | | | Before this change, if os_defs.h was included after macros.h then win_defs.h would undefine our own RGB macro. vim-patch:8.0.0146
* os: Add OS_STD*_FILENO constantsZyX2017-07-04
|
* win: tempname(): Use $TMPDIR if defined.Justin M. Keyes2017-03-30
|
* ci: Check that `#include "*.h"` works as a single includeEiichi NISHINA2017-03-27
| | | | | | | | | | | Lesser form of include-what-you-use: at least guarantees that header file did not forget to include something through some other included file. Activate run_single_includes_tests on CI. Fix some IWYU violations. References #5321
* win: Append process dir to $PATHJustin M. Keyes2017-02-04
| | | | | | | | This allows executables to be found by :!, system(), and executable() if they live next to ("sibling" to) nvim.exe. This is what gvim on Windows does, and also matches the behavior of Win32 SearchPath(). https://github.com/vim/vim/blob/c4a249a736d40ec54794827ef95804c225d0e38f/src/os_win32.c#L354-L370
* vim-patch:7.4.896Rui Abreu Ferreira2016-05-08
| | | | | | | | | Problem: Editing a URL, which netrw should handle, doesn't work. Solution: Avoid changing slashes to backslashes. (Yasuhiro Matsumoto) https://github.com/vim/vim/commit/b4f6a46b01ed00b642a2271e9d1559e51ab0f2c4 Cherry-picked from https://github.com/neovim/neovim/pull/810, rebased.
* Windows: Include winsock2.h before windows.hRui Abreu Ferreira2016-04-30
| | | | | | | winsock2.h is incompatible with winsock.h (included by windows.h) and must be included first. For reference see https://msdn.microsoft.com/en-us/library/windows/desktop/ms737629%28v=vs.85%29.aspx
* Merge pull request #4024 from sethjackson/io-includeJustin M. Keyes2016-02-01
|\ | | | | Windows: include <io.h>
| * Windows: include <io.h>.Rui Abreu Ferreira2016-01-17
| | | | | | | | | | | | | | if_csope.c uses _open_osfhandle so include the necessary header. Futher we need <io.h> for read/write/close/lseek. See: https://msdn.microsoft.com/en-us/library/bdts1c9x.aspx
* | Windows: Include <uv.h> for S_IFLNK.Rui Abreu Ferreira2016-01-17
|/ | | | S_IFLNK is not defined on Windows but libuv defines it for us.
* os/win_defs.h: Define O_NOFOLLOWMichael Reed2016-01-16
| | | | It's not present on Windows; see the discussion in #4024.
* Misc. macro cleanupMichael Reed2016-01-14
| | | | | | | | | | - ROOT_UID's comment is misleading, as it's always defined to 0. - SEEK_{SET,END} & O_NOFOLLOW should already be defined on Unix-like systems in <stdio.h> and <fcntl.h>, respectively. In any case, neither of those #ifdef blocks should be in the middle of source files. - The S_IS{LNK,DIR,...} macros should only be undefined on Windows.
* Windows: Undefine the Windows RGB macro.Rui Abreu Ferreira2016-01-14
| | | | | | | Windows provides a RGB macro but we have our own in macros.h. Undefine the Windows one before including macros.h. See: https://msdn.microsoft.com/en-us/library/dd162937%28v=vs.85%29.aspx
* os/*_defs.h: MAXNAMLEN cleanupMichael Reed2016-01-12
| | | | | | | | | | | | | For non-Windows systems, we assume that NAME_MAX is in <limits.h>, as specified in POSIX.1-2008[1]. For Windows, which doesn't have NAME_MAX, just define it ourselves to _MAX_PATH[2]. Also, remove two (now unused) HAVE_*_H checks. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html [2]: https://msdn.microsoft.com/en-us/library/930f87yf.aspx Helped-by: Seth Jackson
* Windows: use ';' as env $PATH separator.Rui Abreu Ferreira2016-01-11
| | | | | | In Windows the separator character in the PATH environment is ';' instead of ':'. Add a new define ENV_SEPCHAR to be used instead of hardcoding the character literal.
* MSVC: Define STDOUT_FILENO and STDERR_FILENO.Rui Abreu Ferreira2015-12-21
|
* Merge pull request #3846 from sethjackson/win-defsJustin M. Keyes2015-12-16
|\ | | | | MSVC: Define S_IXUSR.
| * MSVC: Define S_IXUSR.Rui Abreu Ferreira2015-12-16
| |
* | Windows: define FNAME_ILLEGAL.Seth Jackson2015-12-14
|/
* Windows: Add path definitions for Windows.Seth Jackson2015-11-29
|
* Windows: Only redefine ssize_t for MSVCRui Abreu Ferreira2015-11-26
| | | | MinGW already has a redefine for ssize_t.
* main,version: Remove USR_EXRC_FILE*ZyX2015-10-23
|
* shada: Move shada file to a new locationZyX2015-10-23
|
* option: Use different default value for &runtimepathZyX2015-10-23
|
* option,main: Partial support of XDG base directory specificationKeerthan Jaic2015-10-23
| | | | | | | | | | | | - Add functions that are able to query XDG. - Replace defaults for - &runtimepath. Does not follow #78. - &viewdir. - &undodir. - &directory. - &backupdir. Does not follow #78. - vimrc location. - Remove user vimrc file line from :version message.
* viminfo: First version of ShaDa file dumpingZyX2015-10-08
| | | | | | | | | | | | | | | | | | | | What works: 1. ShaDa file dumping: header, registers, jump list, history, search patterns, substitute strings, variables. 2. ShaDa file reading: registers, global marks, variables. Most was not tested. TODO: 1. Merging. 2. Reading history, local marks, jump and buffer lists. 3. Documentation update. 4. Converting some data from &encoding. 5. Safer variant of dumping viminfo (dump to temporary file then rename). 6. Removing old viminfo code (currently masked with `#if 0` in a ShaDa file for reference).
* Windows: Define USE_CRNL on Windows. #3249Seth Jackson2015-08-28
|
* MSVC: Define `inline` and `restrict`. #3237Seth Jackson2015-08-25
| | | | | | | | MSVC 2015 defines __func__ (C++11). https://msdn.microsoft.com/en-us/library/dn919276.aspx MSVC only allows inline in C++ and requires __inline in C instead. https://msdn.microsoft.com/en-us/library/bw1hbe6y.aspx
* Windows: Define ssize_t and SSIZE_MAX. #3228Seth Jackson2015-08-25
| | | | | Remove R_OK, W_OK defines because os/os.h includes <uv.h> which includes uv-win.h which defines R_OK and W_OK.
* win_defs.h: define R_OK, W_OK for MSVC.Rui Abreu Ferreira2015-08-17
|
* Split os_unix_defs.h into os/Yamakaky2015-07-06
|
* Linting: Fix header guards, add whitespace.Florian Walch2014-12-24
|
* Remove #ifdefs TEMPDIRNAMES and add TEMPDIRNAMES for WindowsPavel Platto2014-07-14
Vim does not define TEMPDIRNAMES for all systems, but it is defined for all systems supported by Neovim. Temporary directory names for Windows was obtained from GetTempPath() function documentation at MSDN. Additionally small renamings were performed.