diff options
author | Neil <nyamatongwe@gmail.com> | 2018-01-21 13:04:39 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-01-21 13:04:39 +1100 |
commit | 6826f2ec576b0dcbe00ac87f990a27f073eb88bf (patch) | |
tree | 312be96705988b87b80aa4a50883674112f8e0ae | |
parent | aa2317ee620bacf4299e27739cc373834729005d (diff) | |
download | scintilla-mirror-6826f2ec576b0dcbe00ac87f990a27f073eb88bf.tar.gz |
Fix namespace so can build inside Visual C++.
-rw-r--r-- | test/unit/UnitTester.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/UnitTester.cxx b/test/unit/UnitTester.cxx index 9a3eb5195..829a322fc 100644 --- a/test/unit/UnitTester.cxx +++ b/test/unit/UnitTester.cxx @@ -11,6 +11,8 @@ // Needed for PLATFORM_ASSERT in code being tested +namespace Scintilla { + void Platform::Assert(const char *c, const char *file, int line) { fprintf(stderr, "Assertion [%s] failed at %s %d\n", c, file, line); abort(); @@ -25,6 +27,8 @@ void Platform::DebugPrintf(const char *format, ...) { fprintf(stderr, "%s", buffer); } +} + int main(int argc, char* const argv[]) { const int result = Catch::Session().run(argc, argv); |