diff --git a/src/musikbox/cursespp/ScrollableWindow.h b/src/musikbox/cursespp/ScrollableWindow.h index ff77024f8..24906997b 100755 --- a/src/musikbox/cursespp/ScrollableWindow.h +++ b/src/musikbox/cursespp/ScrollableWindow.h @@ -41,7 +41,14 @@ #include "IKeyHandler.h" namespace cursespp { - class ScrollableWindow : public IScrollable, public IKeyHandler, public Window { + class ScrollableWindow : + public IScrollable, + public IKeyHandler, + #if (__clang_major__ == 7 && __clang_minor__ == 3) + public std::enable_shared_from_this, + #endif + public Window + { public: ScrollableWindow( std::shared_ptr adapter,