From b5e52776629d8913670dbebb807bdc3f1cf93d2a Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Mon, 18 Feb 2019 22:29:50 +0100 Subject: [PATCH] Fix random crashes when program ended in macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The program randomly crashed when destroying the pvt block (EXC_BAD_ACCESS). This didn’t happen on Linux. Beidou PVT fixes not available in macOS until finding the root cause. --- src/algorithms/libs/rtklib/rtklib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/algorithms/libs/rtklib/rtklib.h b/src/algorithms/libs/rtklib/rtklib.h index 2cf0f1a63..e6eb11faa 100644 --- a/src/algorithms/libs/rtklib/rtklib.h +++ b/src/algorithms/libs/rtklib/rtklib.h @@ -221,7 +221,9 @@ const int NSATQZS = 0; const int NSYSQZS = 0; #endif +#ifndef __APPLE__ #define ENABDS +#endif #ifdef ENABDS const int MINPRNBDS = 1; //!< min satellite sat number of BeiDou const int MAXPRNBDS = 37; //!< max satellite sat number of BeiDou