diff options
| -rw-r--r-- | src/Fl_Double_Window.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_Window_fullscreen.cxx | 2 | ||||
| -rw-r--r-- | src/fl_arci.cxx | 4 | ||||
| -rw-r--r-- | src/fl_font_x.cxx | 4 |
4 files changed, 4 insertions, 8 deletions
diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index 9264efc86..ffaff2663 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -64,7 +64,7 @@ void Fl_Double_Window::show() { Fl_Window::show(); } -#if defined(X11) +#if defined(USE_X11) // maybe someone feels inclined to implement alpha blending on X11? char fl_can_do_alpha_blending() { diff --git a/src/Fl_Window_fullscreen.cxx b/src/Fl_Window_fullscreen.cxx index c72e70ec0..238033f73 100644 --- a/src/Fl_Window_fullscreen.cxx +++ b/src/Fl_Window_fullscreen.cxx @@ -38,9 +38,7 @@ #include <FL/Fl.H> #include <FL/x.H> -#ifdef __APPLE__ #include <config.h> -#endif void Fl_Window::border(int b) { if (b) { diff --git a/src/fl_arci.cxx b/src/fl_arci.cxx index f3464e34a..6e9ba744d 100644 --- a/src/fl_arci.cxx +++ b/src/fl_arci.cxx @@ -45,9 +45,7 @@ #ifdef WIN32 # include <FL/math.h> #endif -#ifdef __APPLE__ -# include <config.h> -#endif +#include <config.h> /** Draw ellipse sections using integer coordinates. diff --git a/src/fl_font_x.cxx b/src/fl_font_x.cxx index 41639bb82..04b3738d8 100644 --- a/src/fl_font_x.cxx +++ b/src/fl_font_x.cxx @@ -114,7 +114,7 @@ int fl_correct_encoding(const char* name) { return (*c++ && !strcmp(c,fl_encoding)); } -static char *find_best_font(const char *fname, int size) { +static const char *find_best_font(const char *fname, int size) { int cnt; static char **list = NULL; // locate or create an Fl_Font_Descriptor for a given Fl_Fontdesc and size: @@ -189,7 +189,7 @@ static char *put_font_size(const char *n, int size) int i = 0; char *buf; const char *ptr; - char *f; + const char *f; char *name; int nbf = 1; name = strdup(n); |
