summaryrefslogtreecommitdiff
path: root/dgl/Color.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dgl/Color.hpp')
-rw-r--r--dgl/Color.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dgl/Color.hpp b/dgl/Color.hpp
index 2fc8c64c..51d8afc8 100644
--- a/dgl/Color.hpp
+++ b/dgl/Color.hpp
@@ -19,7 +19,9 @@
#include "Base.hpp"
+#if !defined(HAVE_DCAIRO)
struct NVGcolor;
+#endif
START_NAMESPACE_DGL
@@ -95,12 +97,14 @@ struct Color {
*/
void fixBounds() noexcept;
+#if !defined(HAVE_DCAIRO)
/**
@internal
Needed for NanoVG compatibility.
*/
Color(const NVGcolor&) noexcept;
operator NVGcolor() const noexcept;
+#endif
};
// -----------------------------------------------------------------------