summaryrefslogtreecommitdiff
path: root/src/Fl_Image_Surface.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Image_Surface.cxx')
-rw-r--r--src/Fl_Image_Surface.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Image_Surface.cxx b/src/Fl_Image_Surface.cxx
index e273a4c2f..e2870e578 100644
--- a/src/Fl_Image_Surface.cxx
+++ b/src/Fl_Image_Surface.cxx
@@ -1,7 +1,7 @@
//
// Draw-to-image code for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2017 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
@@ -18,6 +18,8 @@
#include <FL/fl_draw.H> // necessary for FL_EXPORT fl_*_offscreen()
+#include <stdlib.h> // realloc()
+
/** Constructor with optional high resolution.
\param w,h Width and height of the resulting image. The value of the \p high_res
parameter controls whether \p w and \p h are interpreted as pixels or FLTK units.