mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 03:09:35 +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
|
|
@ -7,6 +7,8 @@
|
|||
#include "file-path-impl.hh"
|
||||
#include "util.hh"
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
namespace nix {
|
||||
|
||||
std::string os_string_to_string(PathViewNG::string_view path)
|
||||
|
|
@ -22,3 +24,5 @@ std::filesystem::path::string_type string_to_os_string(std::string_view s)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue