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

windows: fix conditional compilation variable

This commit is contained in:
Jörg Thalheim 2025-01-05 19:02:28 +00:00
parent 442a2623e4
commit 98d75de1ea
12 changed files with 12 additions and 12 deletions

View file

@ -3,7 +3,7 @@
#include "signals.hh"
#include "util.hh"
#ifdef WIN32
#ifdef _WIN32
# include <errhandlingapi.h>
# include <fileapi.h>
# include <windows.h>

View file

@ -1,6 +1,6 @@
#include "environment-variables.hh"
#ifdef WIN32
#ifdef _WIN32
# include "processenv.h"
namespace nix {

View file

@ -5,7 +5,7 @@
#include "windows-error.hh"
#include "file-path.hh"
#ifdef WIN32
#ifdef _WIN32
#include <fileapi.h>
#include <error.h>
#include <namedpipeapi.h>

View file

@ -1,6 +1,6 @@
#include "file-system.hh"
#ifdef WIN32
#ifdef _WIN32
namespace nix {
Descriptor openDirectory(const std::filesystem::path & path)

View file

@ -1,4 +1,4 @@
#ifdef WIN32
#ifdef _WIN32
# include <ioapiset.h>
# include "windows-error.hh"

View file

@ -7,7 +7,7 @@
#include "file-path-impl.hh"
#include "util.hh"
#ifdef WIN32
#ifdef _WIN32
namespace nix {

View file

@ -23,7 +23,7 @@
#include <sys/types.h>
#include <unistd.h>
#ifdef WIN32
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View file

@ -4,7 +4,7 @@
#include "file-system.hh"
#include "windows-error.hh"
#ifdef WIN32
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View file

@ -1,7 +1,7 @@
#include "windows-async-pipe.hh"
#include "windows-error.hh"
#ifdef WIN32
#ifdef _WIN32
namespace nix::windows {

View file

@ -2,7 +2,7 @@
///@file
#include "file-descriptor.hh"
#ifdef WIN32
#ifdef _WIN32
namespace nix::windows {

View file

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

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#ifdef WIN32
#ifdef _WIN32
#include <errhandlingapi.h>
#include "error.hh"