diff --git a/plugins/samplemimo/audiocatsiso/audiocatsisohamlib.cpp b/plugins/samplemimo/audiocatsiso/audiocatsisohamlib.cpp
index 5c9e7734c..09c228c4b 100644
--- a/plugins/samplemimo/audiocatsiso/audiocatsisohamlib.cpp
+++ b/plugins/samplemimo/audiocatsiso/audiocatsisohamlib.cpp
@@ -17,7 +17,6 @@
// along with this program. If not, see . //
///////////////////////////////////////////////////////////////////////////////////
-#include
#include "audiocatsisohamlib.h"
AudioCATSISOHamlib::AudioCATSISOHamlib()
@@ -31,7 +30,7 @@ AudioCATSISOHamlib::~AudioCATSISOHamlib()
{
}
-int AudioCATSISOHamlib::hash_model_list(const struct rig_caps *caps, void *data)
+int AudioCATSISOHamlib::hash_model_list(HAMLIB_RIG_CAPS *caps, void *data)
{
AudioCATSISOHamlib *hamlibHandler = (AudioCATSISOHamlib*) data;
hamlibHandler->m_rigModels[caps->rig_model] = caps->model_name;
diff --git a/plugins/samplemimo/audiocatsiso/audiocatsisohamlib.h b/plugins/samplemimo/audiocatsiso/audiocatsisohamlib.h
index 4faf0992b..a1728a917 100644
--- a/plugins/samplemimo/audiocatsiso/audiocatsisohamlib.h
+++ b/plugins/samplemimo/audiocatsiso/audiocatsisohamlib.h
@@ -21,8 +21,19 @@
#define _AUDIOCATSISO_AUDIOCATSISOHAMLIB_H_
#include
+#include
-struct rig_caps;
+#ifdef RIGCAPS_NOT_CONST
+
+ /* Since this commit:
+ * https://github.com/Hamlib/Hamlib/commit/ed941939359da9f8734dbdf4a21a9b01622a1a6e
+ * a 'struct rig_caps' is no longer constant (as passed to 'rig_list_foreach()' etc.).
+ */
+
+ #define HAMLIB_RIG_CAPS struct rig_caps
+#else
+ #define HAMLIB_RIG_CAPS const struct rig_caps
+#endif
class AudioCATSISOHamlib
{
@@ -36,7 +47,7 @@ public:
private:
QMap m_rigModels;
QMap m_rigNames;
- static int hash_model_list(const struct rig_caps *caps, void *data);
+ static int hash_model_list(HAMLIB_RIG_CAPS *caps, void *data);
};