diff --git a/src/directories.cc b/src/directories.cc index f114427..c55e9a0 100644 --- a/src/directories.cc +++ b/src/directories.cc @@ -8,8 +8,8 @@ #include //TODO: remove using namespace std; //TODO: remove -#ifndef _WIN32 namespace sigc { +#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE template struct functor_trait { typedef decltype (::sigc::mem_fun(std::declval(), @@ -17,8 +17,10 @@ namespace sigc { typedef typename _intermediate::result_type result_type; typedef Functor functor_type; }; -} +#else + SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE #endif +} Directories::Directories() : stop_update_thread(false) { DEBUG("adding treeview to scrolledwindow"); diff --git a/src/entrybox.cc b/src/entrybox.cc index 20043bd..8cfb1d2 100644 --- a/src/entrybox.cc +++ b/src/entrybox.cc @@ -1,7 +1,7 @@ #include "entrybox.h" -#ifndef _WIN32 namespace sigc { +#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE template struct functor_trait { typedef decltype (::sigc::mem_fun(std::declval(), @@ -9,8 +9,10 @@ namespace sigc { typedef typename _intermediate::result_type result_type; typedef Functor functor_type; }; -} +#else + SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE #endif +} std::unordered_map > EntryBox::entry_histories; diff --git a/src/notebook.cc b/src/notebook.cc index aea6ef1..802bf35 100644 --- a/src/notebook.cc +++ b/src/notebook.cc @@ -9,8 +9,8 @@ #include //TODO: remove using namespace std; //TODO: remove -#ifndef _WIN32 namespace sigc { +#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE template struct functor_trait { typedef decltype (::sigc::mem_fun(std::declval(), @@ -18,8 +18,10 @@ namespace sigc { typedef typename _intermediate::result_type result_type; typedef Functor functor_type; }; -} +#else + SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE #endif +} Notebook::Notebook(Directories &directories) : Gtk::Notebook(), directories(directories) { Gsv::init(); diff --git a/src/selectiondialog.cc b/src/selectiondialog.cc index 4cd0e5c..8924b58 100644 --- a/src/selectiondialog.cc +++ b/src/selectiondialog.cc @@ -1,8 +1,8 @@ #include "selectiondialog.h" #include -#ifndef _WIN32 namespace sigc { +#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE template struct functor_trait { typedef decltype (::sigc::mem_fun(std::declval(), @@ -10,8 +10,10 @@ namespace sigc { typedef typename _intermediate::result_type result_type; typedef Functor functor_type; }; -} +#else + SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE #endif +} SelectionDialogBase::SelectionDialogBase(Gtk::TextView& text_view, Glib::RefPtr start_mark, bool show_search_entry): text_view(text_view), start_mark(start_mark), show_search_entry(show_search_entry), list_view_text(1, false, Gtk::SelectionMode::SELECTION_BROWSE) { diff --git a/src/source.cc b/src/source.cc index fc330c4..25b6a88 100644 --- a/src/source.cc +++ b/src/source.cc @@ -11,8 +11,8 @@ using namespace std; //TODO: remove -#ifndef _WIN32 namespace sigc { +#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE template struct functor_trait { typedef decltype (::sigc::mem_fun(std::declval(), @@ -20,8 +20,10 @@ namespace sigc { typedef typename _intermediate::result_type result_type; typedef Functor functor_type; }; -} +#else + SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE #endif +} Glib::RefPtr Source::guess_language(const boost::filesystem::path &file_path) { auto language_manager=Gsv::LanguageManager::get_default(); diff --git a/src/tooltips.cc b/src/tooltips.cc index a509c33..9627309 100644 --- a/src/tooltips.cc +++ b/src/tooltips.cc @@ -1,8 +1,8 @@ #include "tooltips.h" #include "singletons.h" -#ifndef _WIN32 namespace sigc { +#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE template struct functor_trait { typedef decltype (::sigc::mem_fun(std::declval(), @@ -10,8 +10,10 @@ namespace sigc { typedef typename _intermediate::result_type result_type; typedef Functor functor_type; }; -} +#else + SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE #endif +} Gdk::Rectangle Tooltips::drawn_tooltips_rectangle=Gdk::Rectangle(); diff --git a/src/window.cc b/src/window.cc index 402c294..9cca7be 100644 --- a/src/window.cc +++ b/src/window.cc @@ -9,8 +9,8 @@ #include //TODO: remove using namespace std; //TODO: remove -#ifndef _WIN32 namespace sigc { +#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE template struct functor_trait { typedef decltype (::sigc::mem_fun(std::declval(), @@ -18,8 +18,10 @@ namespace sigc { typedef typename _intermediate::result_type result_type; typedef Functor functor_type; }; -} +#else + SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE #endif +} void Window::generate_keybindings() { boost::filesystem::path path(Singleton::config_dir() + "menu.xml");