Skip to content

Commit

Permalink
fix macro guard
Browse files Browse the repository at this point in the history
  • Loading branch information
trcrsired committed Jan 18, 2024
1 parent 996eee7 commit ca87da9
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions include/fast_io_hosted/process_revamp/native.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,26 @@

#if !defined(__MSDOS__) && !defined(__NEWLIB__) && !defined(__wasi__) && !defined(_PICOLIBC__)
#include"base.h"
#if defined(_WIN32) && !defined(_WIN32_WINDOWS)
#if (defined(_WIN32) && !defined(_WIN32_WINDOWS) && !defined(__WINE__)) || defined(__CYGWIN__)
#include"nt.h"
namespace fast_io {
using native_process_observer = ::fast_io::nt_process_observer;
using native_process = ::fast_io::nt_process;
} // namespace fast_io
#endif

#elif __has_include(<sys/wait.h>)
#if defined(__CYGWIN__) || ((!defined(_WIN32) || defined(__WINE__)) && __has_include(<sys/wait.h>))
#include <sys/wait.h>
#include"posix.h"
namespace fast_io {
#endif

namespace fast_io
{
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__WINE__)
#if !defined(_WIN32_WINDOWS)
using native_process_observer = ::fast_io::nt_process_observer;
using native_process = ::fast_io::nt_process;
#endif
#else
using native_process_observer = ::fast_io::posix_process_observer;
using native_process = ::fast_io::posix_process;
} // namespace fast_io
#endif
} // namespace fast_io

#endif

0 comments on commit ca87da9

Please sign in to comment.