1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-19 00:39:37 +01:00

Fix Windows header inclusions for clang-tidy

Move windows-error.hh includes inside _WIN32 guards to prevent
clang-tidy errors when analyzing these files on non-Windows platforms.
This commit is contained in:
Jörg Thalheim 2025-07-17 12:26:50 +02:00
parent 17c94ca89e
commit 6681933643
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,5 @@
#include "nix/util/windows-error.hh"
#ifdef _WIN32
#include "nix/util/windows-error.hh"
#include <error.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>