diff options
author | crupest <crupest@outlook.com> | 2024-06-24 00:06:25 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-07-23 20:58:25 +0800 |
commit | b756bf519cda0684ec46d0d9404cbc59741ec0cb (patch) | |
tree | 362f3f2a6bc93b786d7f70cdb6f879951910ed90 /include/cru/common/platform/unix/UnixPipe.h | |
parent | c13f21e59c6219a030f54887e93ed6ff23fce292 (diff) | |
download | cru-b756bf519cda0684ec46d0d9404cbc59741ec0cb.tar.gz cru-b756bf519cda0684ec46d0d9404cbc59741ec0cb.tar.bz2 cru-b756bf519cda0684ec46d0d9404cbc59741ec0cb.zip |
refactor: use better precompile macro in platform headers.
NEED TEST: BufferStream, AutoReadStream, SubProcess.
Diffstat (limited to 'include/cru/common/platform/unix/UnixPipe.h')
-rw-r--r-- | include/cru/common/platform/unix/UnixPipe.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cru/common/platform/unix/UnixPipe.h b/include/cru/common/platform/unix/UnixPipe.h index 2ea80bde..afe6024a 100644 --- a/include/cru/common/platform/unix/UnixPipe.h +++ b/include/cru/common/platform/unix/UnixPipe.h @@ -2,7 +2,9 @@ #include "../../PreConfig.h" -#ifdef CRU_PLATFORM_UNIX +#ifndef CRU_PLATFORM_UNIX +#error "This file can only be included on unix." +#endif #include "../../Base.h" #include "../../Bitmask.h" @@ -65,5 +67,3 @@ class UnixPipe : public Object { int write_fd_; }; } // namespace cru::platform::unix - -#endif |