summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--compat/literals.hpp11
-rw-r--r--compat/prelude.hpp34
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;