summaryrefslogtreecommitdiff
path: root/src/drivers/Xlib
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-03-20 21:39:28 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-03-21 00:42:28 +0100
commit41266df7ae51f179f4a80f67a2eba896ba1fd7b2 (patch)
tree52103dcc63cd91c58b6f599ca7595b254549b3cb /src/drivers/Xlib
parentbd52db0b952d35ce793153e4a0c0b25f102a4395 (diff)
Remove unnecessary system includes from public headers
Add includes of system headers in the implementation files where necessary.
Diffstat (limited to 'src/drivers/Xlib')
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx1
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
index 6401efa97..a96682554 100644
--- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
+++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
@@ -22,6 +22,7 @@
#include <FL/platform.H>
#include <string.h>
+#include <stdlib.h>
extern XIC fl_xim_ic;
extern char fl_is_over_the_spot;
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx
index 1aaeceea1..17fbba7fa 100644
--- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx
+++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_line_style.cxx
@@ -1,7 +1,7 @@
//
// Line style code for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2018 by Bill Spitzak and others.
+// Copyright 1998-2021 by Bill Spitzak and others.
//
// 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
@@ -23,8 +23,8 @@
#include <FL/fl_draw.H>
#include <FL/platform.H>
#include "../../flstring.h"
-
#include "Fl_Xlib_Graphics_Driver.H"
+#include <stdlib.h>
void Fl_Xlib_Graphics_Driver::line_style_unscaled(int style, int width, char* dashes) {