aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-02-01 08:54:25 +1100
committerNeil <nyamatongwe@gmail.com>2024-02-01 08:54:25 +1100
commit1345bb5b0e10e213fb1943fe491679d6fe45e9b0 (patch)
tree4e10b35d16172b56dfb4f96048588b767232e296
parent77d00274b4e729ba5eac3cda390d6aa9478567ca (diff)
downloadscintilla-mirror-1345bb5b0e10e213fb1943fe491679d6fe45e9b0.tar.gz
Protect CATCH_CONFIG_WINDOWS_CRTDBG to only be active on Windows to allow
building UnitTester.cxx on macOS.
-rw-r--r--test/unit/UnitTester.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/UnitTester.cxx b/test/unit/UnitTester.cxx
index 6382b428b..354ae5919 100644
--- a/test/unit/UnitTester.cxx
+++ b/test/unit/UnitTester.cxx
@@ -16,7 +16,9 @@
#include "Debugging.h"
+#if defined(_WIN32)
#define CATCH_CONFIG_WINDOWS_CRTDBG
+#endif
#define CATCH_CONFIG_RUNNER
#include "catch.hpp"