From 67b78723134022c6c5046d94d69aefcfb6e20d61 Mon Sep 17 00:00:00 2001 From: Lorenzo Santina Date: Mon, 26 Jul 2021 01:51:03 +0200 Subject: [PATCH] Fixed c++ exception for visual studio compiler --- include/hamlib/rigclass.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/hamlib/rigclass.h b/include/hamlib/rigclass.h index 6ec328669..23f6a17e5 100644 --- a/include/hamlib/rigclass.h +++ b/include/hamlib/rigclass.h @@ -295,6 +295,8 @@ inline void THROW(const RigException *e) #else throw *e; #endif +#elif defined(_MSC_VER) + throw* e; #elif defined(__SUNPRO_CC) genericerror(1, ((e != 0) ? (char *)(e->message) : "")); #else