From 469c85639a14bf6ff10220122b777073d7aaaa03 Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 10 May 2017 00:02:37 +0200 Subject: [PATCH] some more platform checks --- ostd/process.hh | 5 +++++ ostd/stream.hh | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ostd/process.hh b/ostd/process.hh index e809a93..fdd06a8 100644 --- a/ostd/process.hh +++ b/ostd/process.hh @@ -21,6 +21,11 @@ #include #include "ostd/platform.hh" + +#if !defined(OSTD_PLATFORM_POSIX) && !defined(OSTD_PLATFORM_WIN32) +# error "Unsupported platform" +#endif + #include "ostd/string.hh" #include "ostd/range.hh" #include "ostd/io.hh" diff --git a/ostd/stream.hh b/ostd/stream.hh index 12b5b03..01e954b 100644 --- a/ostd/stream.hh +++ b/ostd/stream.hh @@ -42,11 +42,16 @@ #include #include +#include "ostd/platform.hh" + +#if !defined(OSTD_PLATFORM_POSIX) && !defined(OSTD_PLATFORM_WIN32) +# error "Unsupported platform" +#endif + #ifndef OSTD_PLATFORM_WIN32 #include #endif -#include "ostd/platform.hh" #include "ostd/range.hh" #include "ostd/string.hh" #include "ostd/format.hh"