aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/ErrnoException.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-15 18:42:32 +0800
committercrupest <crupest@outlook.com>2022-01-15 18:42:32 +0800
commitb6757b263ed304aed22eb2a472805f87bfb67f3a (patch)
treec1e54a9348d4b3d4af3c10629876e380778d2e72 /include/cru/common/ErrnoException.hpp
parent76b631144e008006efb3894c16e6fd04608d0b68 (diff)
downloadcru-b6757b263ed304aed22eb2a472805f87bfb67f3a.tar.gz
cru-b6757b263ed304aed22eb2a472805f87bfb67f3a.tar.bz2
cru-b6757b263ed304aed22eb2a472805f87bfb67f3a.zip
...
Diffstat (limited to 'include/cru/common/ErrnoException.hpp')
-rw-r--r--include/cru/common/ErrnoException.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cru/common/ErrnoException.hpp b/include/cru/common/ErrnoException.hpp
index 6feb1aca..d1390cf2 100644
--- a/include/cru/common/ErrnoException.hpp
+++ b/include/cru/common/ErrnoException.hpp
@@ -1,5 +1,9 @@
#pragma once
+#include "PreConfig.hpp"
+
+#ifdef CRU_PLATFORM_UNIX
+
#include "Exception.hpp"
namespace cru {
@@ -20,3 +24,5 @@ class ErrnoException : public Exception {
int errno_code_;
};
} // namespace cru
+
+#endif