From d85ac84278fa0322f1df0b16a45a1cdde83cba57 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 9 Sep 2018 22:19:40 +0800 Subject: Msvc compile fixes --- src/span.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/span.cpp') diff --git a/src/span.cpp b/src/span.cpp index 3d4d1ceb..eacdc7aa 100644 --- a/src/span.cpp +++ b/src/span.cpp @@ -59,7 +59,11 @@ namespace { void Span::bug(::std::function msg) const { print_span_message(*this, [](auto& os){os << "BUG";}, msg); +#ifndef _WIN32 abort(); +#else + exit(1); +#endif } void Span::error(ErrorType tag, ::std::function msg) const { -- cgit v1.2.3