diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-27 13:13:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-27 13:13:57 +0200 |
commit | f1048d9dd6a86844fbd3444345026a18f847a302 (patch) | |
tree | 4b47f3a3840cb0c1440564b195875b74f5d0d073 | |
parent | 312c6854324992572f4aa19976ca04d204705aad (diff) |
cleanup prelude
-rw-r--r-- | compat/literals.hpp | 11 | ||||
-rw-r--r-- | compat/prelude.hpp | 34 |
2 files changed, 8 insertions, 37 deletions
diff --git a/compat/literals.hpp b/compat/literals.hpp deleted file mode 100644 index 7117a992..00000000 --- a/compat/literals.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once -#include "integer-types.hpp" - -#if !(defined __cpp_size_t_suffix || defined _MSC_VER && _MSVC_LANG < 202004) -#ifdef _MSC_VER -#pragma system_header -#else -#pragma GCC system_header -#endif -consteval auto operator""uz(unsigned long long int x) { return ::floormat::size_t(x); } -#endif diff --git a/compat/prelude.hpp b/compat/prelude.hpp index cff22eca..897a1d26 100644 --- a/compat/prelude.hpp +++ b/compat/prelude.hpp @@ -1,40 +1,22 @@ #pragma once #include "integer-types.hpp" -#include "literals.hpp" +#include <type_traits> +#include <Corrade/Containers/Containers.h> +#include <Corrade/Utility/Macros.h> +#include <Magnum/Magnum.h> -#if 0 -namespace floormat { +#if !(defined __cpp_size_t_suffix || defined _MSC_VER && _MSVC_LANG < 202004) #ifdef _MSC_VER -#if defined _WIN64 -typedef unsigned __int64 size_t; -#else -typedef unsigned int size_t; -#endif +#pragma system_header #else -typedef __SIZE_TYPE__ size_t; +#pragma GCC system_header #endif -} // namespace floormat +consteval auto operator""uz(unsigned long long int x) { return ::floormat::size_t(x); } #endif -namespace Corrade::Containers { - -class String; -template<typename T> class BasicStringView; -using StringView = BasicStringView<const char>; - -template<typename T> class ArrayView; - -} // namespace Corrade::Containers - namespace Corrade::Containers::Literals {} namespace Corrade::Utility::Path {} -namespace Corrade::Utility { class Debug; class Error; } namespace Magnum::Math::Literals {} -namespace Magnum::Math { -template<typename T> class Vector2; -template<typename T> class Vector3; -template<typename T> class Vector4; -} // namespace Magnum::Math namespace floormat { using namespace ::Magnum; |