Skip to content

Commit

Permalink
watcher: f windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Oct 8, 2023
1 parent 9986b5e commit 0e0e87a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion devel/include/detail/wtr/watcher/adapter/warthog/watch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Only support the C++ standard library */

#if ! defined(__linux__) && ! defined(__ANDROID_API__) && ! defined(__APPLE__) \
&& ! defined(_WIN32)
&& ! defined(WIN32)

#include "wtr/watcher.hpp"
#include <chrono>
Expand Down
2 changes: 1 addition & 1 deletion devel/include/detail/wtr/watcher/adapter/windows/watch.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if defined(_WIN32)
#if defined(WIN32)

#include "wtr/watcher.hpp"
#include <atomic>
Expand Down
2 changes: 1 addition & 1 deletion devel/include/test_watcher/event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct std::hash<wtr::watcher::event_without_time> {
-> std::size_t
{
return std::hash<decltype(ev.path_name.string())>{}(ev.path_name.string())
#ifdef _WIN32
#ifdef WIN32
^ std::hash<int>{}((int)ev.path_type)
^ std::hash<int>{}((int)ev.effect_type);
#else
Expand Down
4 changes: 2 additions & 2 deletions devel/include/test_watcher/is_verbose.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <cstdlib>

#ifdef _WIN32
#ifdef WIN32
#include <stdlib.h> // _dupenv_s
#endif

Expand All @@ -11,7 +11,7 @@ namespace test_watcher {

inline auto is_verbose() -> bool
{
#ifndef _WIN32
#ifndef WIN32
return std::getenv("VERBOSE") != nullptr;
#else
// WTF, Windows?
Expand Down
4 changes: 2 additions & 2 deletions include/wtr/watcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ inline auto watch(

#endif

#if defined(_WIN32)
#if defined(WIN32)

#include <atomic>
#include <chrono>
Expand Down Expand Up @@ -1899,7 +1899,7 @@ inline auto watch(
- Only support the C++ standard library */

#if ! defined(__linux__) && ! defined(__ANDROID_API__) && ! defined(__APPLE__) \
&& ! defined(_WIN32)
&& ! defined(WIN32)

#include <chrono>
#include <filesystem>
Expand Down

0 comments on commit 0e0e87a

Please sign in to comment.