summaryrefslogtreecommitdiff
path: root/src/fl_color.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_color.cxx')
-rw-r--r--src/fl_color.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/fl_color.cxx b/src/fl_color.cxx
index bf448b6d3..d98db309e 100644
--- a/src/fl_color.cxx
+++ b/src/fl_color.cxx
@@ -29,6 +29,17 @@
#include <config.h>
#include "config_lib.h"
+// fl_cmap needs to be defined *before* we include Fl_GDI_Graphics_Driver_color.cxx
+
+/** \addtogroup fl_attributes
+ @{ */
+
+/* static */
+unsigned fl_cmap[256] = {
+#include "fl_cmap.h" // this is a file produced by "cmap.cxx":
+};
+
+
// Remove #ifndef FL_LIBRARY_CMAKE and the entire block of #include
// statements when the new build system is ready:
#ifndef FL_LIBRARY_CMAKE
@@ -60,14 +71,6 @@
// -----------------------------------------------------------------------------
-/** \addtogroup fl_attributes
- @{ */
-
-/* static */
-unsigned fl_cmap[256] = {
-#include "fl_cmap.h" // this is a file produced by "cmap.cxx":
-};
-
/**
Returns the RGB value(s) for the given FLTK color index.