summaryrefslogtreecommitdiff
path: root/catch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'catch.patch')
-rw-r--r--catch.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/catch.patch b/catch.patch
new file mode 100644
index 0000000..d7b74f4
--- /dev/null
+++ b/catch.patch
@@ -0,0 +1,22 @@
+diff --git a/src/catchwrapper.h b/src/catchwrapper.h
+index b2108b2..9d57f82 100644
+--- a/src/catchwrapper.h
++++ b/src/catchwrapper.h
+@@ -10,7 +10,12 @@
+ #include <Tui/ZColor.h>
+ #include <Tui/ZDocument.h>
+
+-#include <../third-party/catch.hpp>
++#ifdef CATCH3
++#include <catch2/catch_all.hpp>
++using Catch::Approx;
++#else
++#include <catch2/catch.hpp>
++#endif
+
+ #include "filecategorize.h"
+
+diff --git a/third-party/catch.hpp b/third-party/catch2/catch.hpp
+similarity index 100%
+rename from third-party/catch.hpp
+rename to third-party/catch2/catch.hpp