Browse Source

Fix build of DGL without using full DPF

tags/v2.1-alpha1-winvst
falkTX 7 years ago
parent
commit
c748693453
2 changed files with 8 additions and 0 deletions
  1. +4
    -0
      source/modules/dgl/Widget.hpp
  2. +4
    -0
      source/modules/dgl/Window.hpp

+ 4
- 0
source/modules/dgl/Widget.hpp View File

@@ -24,9 +24,11 @@
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// Forward class names // Forward class names


#ifdef DISTRHO_DEFINES_H_INCLUDED
START_NAMESPACE_DISTRHO START_NAMESPACE_DISTRHO
class UI; class UI;
END_NAMESPACE_DISTRHO END_NAMESPACE_DISTRHO
#endif


START_NAMESPACE_DGL START_NAMESPACE_DGL


@@ -373,7 +375,9 @@ private:
friend class NanoWidget; friend class NanoWidget;
friend class Window; friend class Window;
friend class StandaloneWindow; friend class StandaloneWindow;
#ifdef DISTRHO_DEFINES_H_INCLUDED
friend class DISTRHO_NAMESPACE::UI; friend class DISTRHO_NAMESPACE::UI;
#endif


DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Widget) DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Widget)
}; };


+ 4
- 0
source/modules/dgl/Window.hpp View File

@@ -19,9 +19,11 @@


#include "Geometry.hpp" #include "Geometry.hpp"


#ifdef DISTRHO_DEFINES_H_INCLUDED
START_NAMESPACE_DISTRHO START_NAMESPACE_DISTRHO
class UIExporter; class UIExporter;
END_NAMESPACE_DISTRHO END_NAMESPACE_DISTRHO
#endif


START_NAMESPACE_DGL START_NAMESPACE_DGL


@@ -129,7 +131,9 @@ private:
friend class Application; friend class Application;
friend class Widget; friend class Widget;
friend class StandaloneWindow; friend class StandaloneWindow;
#ifdef DISTRHO_DEFINES_H_INCLUDED
friend class DISTRHO_NAMESPACE::UIExporter; friend class DISTRHO_NAMESPACE::UIExporter;
#endif


virtual void _addWidget(Widget* const widget); virtual void _addWidget(Widget* const widget);
virtual void _removeWidget(Widget* const widget); virtual void _removeWidget(Widget* const widget);


Loading…
Cancel
Save