From ba155a3bf5ba516db1b9873865dcce6d7938a766 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 20 Dec 2022 23:51:56 -0700 Subject: [PATCH] build: avoid msvc-only constructor --- common/bsputils.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/bsputils.cc b/common/bsputils.cc index 56acd0b9..9b31fcc0 100644 --- a/common/bsputils.cc +++ b/common/bsputils.cc @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -961,13 +962,13 @@ std::vector LoadLitFile(const fs::path &path) std::array ident; stream >= ident; if (ident != std::array{'Q','L','I','T'}) { - throw std::exception("invalid lit ident"); + throw std::runtime_error("invalid lit ident"); } int version; stream >= version; if (version != 1) { - throw std::exception("invalid lit version"); + throw std::runtime_error("invalid lit version"); } std::vector litdata;