libvapours: reorganize includes.hpp

This commit is contained in:
TuxSH 2020-02-04 19:02:17 +00:00
parent c6a736a6f6
commit 1309e93e26

View file

@ -26,36 +26,29 @@
#include <climits> #include <climits>
#include <cctype> #include <cctype>
/* C++ headers. */
#include <type_traits> #include <type_traits>
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <limits> #include <limits>
#include <random> #include <random>
/* Stratosphere wants stdlib headers, others do not.. */
#ifdef ATMOSPHERE_IS_STRATOSPHERE
/* C++ headers. */
#include <atomic> #include <atomic>
#include <utility> #include <utility>
#include <optional> #include <optional>
#include <memory>
#include <mutex>
#include <shared_mutex>
#include <functional> #include <functional>
#include <tuple> #include <tuple>
#include <array> #include <array>
/* Stratosphere wants additional libstdc++ headers, others do not. */
#ifdef ATMOSPHERE_IS_STRATOSPHERE
#include <memory>
#include <mutex>
#include <shared_mutex>
#include <map> #include <map>
#include <unordered_map> #include <unordered_map>
#include <set> #include <set>
#endif /* ATMOSPHERE_IS_STRATOSPHERE */
#ifdef ATMOSPHERE_BOARD_NINTENDO_SWITCH
#ifdef ATMOSPHERE_IS_STRATOSPHERE
/* Libnx. */ /* Libnx. */
#include <switch.h> #include <switch.h>
@ -64,13 +57,7 @@
/* Non-EL0 code can't include libnx. */ /* Non-EL0 code can't include libnx. */
#include "types.hpp" #include "types.hpp"
#endif #endif /* ATMOSPHERE_IS_STRATOSPHERE */
#else
#error "Unsupported board"
#endif /* ATMOSPHERE_BOARD_NINTENDO_SWITCH */
/* Atmosphere meta. */ /* Atmosphere meta. */
#include "ams_version.h" #include "ams_version.h"