1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

libutil/windows: only define headers/code if we are actually on windows

all those includes otherwise break linters.
This commit is contained in:
Jörg Thalheim 2024-12-16 12:43:28 +01:00
parent b9bbdbeb0b
commit eda331e53f
13 changed files with 43 additions and 12 deletions

View file

@ -1,5 +1,6 @@
#include "windows-error.hh"
#ifdef WIN32
#include <error.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -29,3 +30,4 @@ std::string WinError::renderError(DWORD lastError)
}
}
#endif