some more platform checks

master
Daniel Kolesa 2017-05-10 00:02:37 +02:00
parent 9e429189d7
commit 469c85639a
2 changed files with 11 additions and 1 deletions

View File

@ -21,6 +21,11 @@
#include <vector>
#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"

View File

@ -42,11 +42,16 @@
#include <stdexcept>
#include <system_error>
#include "ostd/platform.hh"
#if !defined(OSTD_PLATFORM_POSIX) && !defined(OSTD_PLATFORM_WIN32)
# error "Unsupported platform"
#endif
#ifndef OSTD_PLATFORM_WIN32
#include <sys/types.h>
#endif
#include "ostd/platform.hh"
#include "ostd/range.hh"
#include "ostd/string.hh"
#include "ostd/format.hh"