From fa0f6c58c1c6d10f04c4e65a424cc51ebca50a8c Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 19 Jun 2020 16:29:03 -0400 Subject: Revert "Fix link error with --enable-debug" This reverts commit b83cc0fc94df99f0334430e63e8c9fa6ae3790e1. --- src/ui_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui_interface.h b/src/ui_interface.h index b7895e373f..356d30eaf6 100644 --- a/src/ui_interface.h +++ b/src/ui_interface.h @@ -122,7 +122,7 @@ void InitWarning(const bilingual_str& str); /** Show error message **/ bool InitError(const bilingual_str& str); -inline bool AbortError(const bilingual_str& str) { return InitError(str); } +constexpr auto AbortError = InitError; extern CClientUIInterface uiInterface; -- cgit v1.2.3 From fac96e6450d595fe67168cb7afa7692da6cc9973 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 19 Jun 2020 18:07:18 -0400 Subject: wallet: Do not include server symbols ui_interface is in libbitcoin_server and can not be included in the wallet because the wallet does not link with server symbols. --- src/Makefile.am | 1 + src/interfaces/wallet.cpp | 2 +- src/interfaces/wallet.h | 2 +- src/ui_interface.h | 8 -------- src/util/ui_change_type.h | 15 +++++++++++++++ src/wallet/wallet.h | 2 +- 6 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 src/util/ui_change_type.h (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 632ed3e31f..d94d829e2b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -234,6 +234,7 @@ BITCOIN_CORE_H = \ util/threadnames.h \ util/time.h \ util/translation.h \ + util/ui_change_type.h \ util/url.h \ util/vector.h \ validation.h \ diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp index b65eb72b1c..a57a086047 100644 --- a/src/interfaces/wallet.cpp +++ b/src/interfaces/wallet.cpp @@ -13,11 +13,11 @@ #include