summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/terminate_handler.cc
diff options
context:
space:
mode:
authorRyan Volz <ryan.volz@gmail.com>2021-01-07 19:13:38 -0500
committerMartin Braun <martin@gnuradio.org>2021-01-09 06:32:01 -0800
commit4bb762f1b6697d181ef4cff025e576ceec1ae796 (patch)
treea653eb4c0e898b04c0c593de291477735f1e6290 /gnuradio-runtime/lib/terminate_handler.cc
parentc28f6a39802c73b74045fd5971d3a15312d1f758 (diff)
runtime: lib: Put #include <cxxabi.h> behind HAVE_LIBINUWIND.
It's only needed when libunwind is used, and always including it fails on Windows because the header doesn't exist for MSVC. Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
Diffstat (limited to 'gnuradio-runtime/lib/terminate_handler.cc')
-rw-r--r--gnuradio-runtime/lib/terminate_handler.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/terminate_handler.cc b/gnuradio-runtime/lib/terminate_handler.cc
index ed3b1d93b4..49468f4c64 100644
--- a/gnuradio-runtime/lib/terminate_handler.cc
+++ b/gnuradio-runtime/lib/terminate_handler.cc
@@ -14,10 +14,9 @@
#include <regex>
#include <stdexcept>
-#include <cxxabi.h>
-
#ifdef HAVE_LIBUNWIND
#define UNW_LOCAL_ONLY
+#include <cxxabi.h>
#include <libunwind.h>
#include <cstdio>
#include <cstdlib>