summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gui/init.cpp2
-rw-r--r--gui/init.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/init.cpp b/gui/init.cpp
index f3330b24..683693d1 100644
--- a/gui/init.cpp
+++ b/gui/init.cpp
@@ -183,7 +183,7 @@ int run_window(QApplication& app, std::unique_ptr<QWidget> main_window)
return status;
}
-int otr_main(int argc, char** argv, std::function<QWidget*()> const& make_main_window)
+OTR_GUI_EXPORT int otr_main(int argc, char** argv, std::function<QWidget*()> const& make_main_window)
{
#if defined OTR_HAS_DENORM_CONTROL
set_fp_mask();
diff --git a/gui/init.hpp b/gui/init.hpp
index 1142ff24..7c437bcb 100644
--- a/gui/init.hpp
+++ b/gui/init.hpp
@@ -5,7 +5,7 @@
#include <functional>
#include <QWidget>
-int OTR_GUI_EXPORT otr_main(int argc, char** argv, std::function<QWidget*()> make_main_window);
+OTR_GUI_EXPORT int otr_main(int argc, char** argv, std::function<QWidget*()> const& make_main_window);
// XXX TODO need split MainWindow into mixins each implementing part of the functionality