Export fl_cmap to be able to build shared FLTK libraries

This commit is contained in:
Albrecht Schlosser 2022-03-27 17:13:16 +02:00
parent b037472649
commit df4503ea2c

View File

@ -1,7 +1,7 @@
// //
// Color functions for the Fast Light Tool Kit (FLTK). // Color functions for the Fast Light Tool Kit (FLTK).
// //
// Copyright 1998-2016 by Bill Spitzak and others. // Copyright 1998-2022 by Bill Spitzak and others.
// //
// This library is free software. Distribution and use rights are outlined in // This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this // the file "COPYING" which should have been included with this file. If this
@ -24,12 +24,12 @@
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/Fl_Device.H> #include <FL/Fl_Device.H>
#include <FL/Fl_Graphics_Driver.H> #include <FL/Fl_Graphics_Driver.H>
#include <FL/Fl.H>
// fl_cmap needs to be defined globally (here) and is used in the device // fl_cmap needs to be defined globally (here) and is used in the device
// specific graphics drivers // specific graphics drivers. It is required to 'FL_EXPORT' this symbol
// to be able to build the shared FLTK libraries.
unsigned fl_cmap[256] = { FL_EXPORT unsigned fl_cmap[256] = {
#include "fl_cmap.h" // this is a file produced by "cmap.cxx": #include "fl_cmap.h" // this is a file produced by "cmap.cxx":
}; };