diff options
Diffstat (limited to 'tests/main.cpp')
-rw-r--r-- | tests/main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/main.cpp b/tests/main.cpp index 162dfdf..c6d12ed 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -1,5 +1,5 @@ /* This file is part of mastodonpp. - * Copyright © 2020 tastytea <tastytea@tastytea.de> + * Copyright © 2020, 2022 tastytea <tastytea@tastytea.de> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -16,4 +16,9 @@ #define CATCH_CONFIG_MAIN -#include <catch.hpp> +// catch 3 does not have catch.hpp anymore +#if __has_include(<catch.hpp>) +# include <catch.hpp> +#else +# include <catch_all.hpp> +#endif |