Minimize and fix include statements of Fl_Int_Vector

- replace <FL/Fl.H> with <FL/Fl_Export.H> in public header
- add missing <string.h> in implementation
This commit is contained in:
Albrecht Schlosser 2023-02-02 17:00:28 +01:00
parent 16dff07994
commit fb00fb3d66
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
// An STL-ish vector without templates for the Fast Light Tool Kit (FLTK).
//
// Copyright 2002 by Greg Ercolano.
// Copyright 2022 by Bill Spitzak and others.
// Copyright 2022-2023 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,7 +18,7 @@
#ifndef Fl_Int_Vector_H
#define Fl_Int_Vector_H
#include <FL/Fl.H>
#include <FL/Fl_Export.H>
/** \file FL/Fl_Int_Vector.H
An STL-ish vector implemented without templates.

View File

@ -17,6 +17,7 @@
#include <FL/Fl_Int_Vector.H>
#include <stdlib.h>
#include <string.h>
/**
Make a copy of another array.