diff options
| -rw-r--r-- | ui/addressdialog.h | 7 | ||||
| -rw-r--r-- | ui/typedialog.h | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ui/addressdialog.h b/ui/addressdialog.h index 212b7a7a..0d8991b5 100644 --- a/ui/addressdialog.h +++ b/ui/addressdialog.h @@ -6,10 +6,16 @@ #include <QtWidgets/QCheckBox> #include <QtWidgets/QComboBox> #include <QtCore/QTimer> +#ifndef BINARYNINJAUI_BINDINGS #include <QtCore/QThread> +#endif #include "binaryninjaapi.h" #include "uitypes.h" +#ifdef BINARYNINJAUI_BINDINGS +// QThread has issues working in the bindings on some platforms +class GetSymbolsListThread; +#else class BINARYNINJAUIAPI GetSymbolsListThread: public QThread { Q_OBJECT @@ -29,6 +35,7 @@ public: const QStringList& getSymbols() const { return m_allSymbols; } }; +#endif class BINARYNINJAUIAPI AddressDialogWithPreview: public QDialog diff --git a/ui/typedialog.h b/ui/typedialog.h index 00a722bc..afd95ee9 100644 --- a/ui/typedialog.h +++ b/ui/typedialog.h @@ -5,11 +5,17 @@ #include <QtCore/QStringListModel> #include <QtWidgets/QComboBox> #include <QtCore/QTimer> +#ifndef BINARYNINJAUI_BINDINGS #include <QtCore/QThread> +#endif #include "binaryninjaapi.h" #include "uitypes.h" +#ifdef BINARYNINJAUI_BINDINGS +// QThread has issues working in the bindings on some platforms +class GetTypesListThread; +#else class BINARYNINJAUIAPI GetTypesListThread: public QThread { Q_OBJECT @@ -29,6 +35,7 @@ public: const QStringList& getTypes() const { return m_allTypes; } }; +#endif class BINARYNINJAUIAPI TypeDialog: public QDialog { |
