diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-19 22:42:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-19 22:42:13 +0200 |
commit | 66c92e4049ba8ab677e10eadc24a0fc7e9b35f35 (patch) | |
tree | abfb00a81738a0708eb4070aa2ec091e48e96169 /test | |
parent | 5f979f925deff0d0dfe0863afd0a99ba0726aaca (diff) |
a
Diffstat (limited to 'test')
-rw-r--r-- | test/const-math.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/const-math.cpp b/test/const-math.cpp index afb42bf3..2b8cbc3c 100644 --- a/test/const-math.cpp +++ b/test/const-math.cpp @@ -6,6 +6,8 @@ #include <Magnum/Math/Vector3.h> #include <Magnum/Math/Vector4.h> +#if defined CORRADE_CONSTEVAL || defined MAGNUM_CONSTEXPR14 + #ifdef __GNUG__ # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wfloat-equal" @@ -70,3 +72,6 @@ bool app::test_const_math() #ifdef __GNUG__ # pragma GCC diagnostic pop #endif +#else +namespace floormat { bool app::test_const_math() { return true; } } +#endif |