mirror of
https://github.com/NixOS/nix.git
synced 2025-11-23 02:39:37 +01:00
libutil/windows: only define headers/code if we are actually on windows
all those includes otherwise break linters.
This commit is contained in:
parent
b9bbdbeb0b
commit
eda331e53f
13 changed files with 43 additions and 12 deletions
|
|
@ -23,6 +23,8 @@
|
|||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
|
|
@ -386,3 +388,5 @@ int execvpe(const wchar_t * file0, const wchar_t * const argv[], const wchar_t *
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue