Don't include 'src/flstring.h' in menubar demo

src/flstring.h should only be used in library code because it
  includes <config.h>.

Document this fact in src/flstring.h.
This commit is contained in:
Albrecht Schlosser 2020-01-16 15:59:00 +01:00
parent dfaab4ae90
commit 33825df108
2 changed files with 11 additions and 3 deletions

View File

@ -2,8 +2,9 @@
* "$Id$"
*
* Common string header file for the Fast Light Tool Kit (FLTK).
* Internal use only (see "important note" below).
*
* Copyright 1998-2018 by Bill Spitzak and others.
* Copyright 1998-2020 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
@ -16,6 +17,14 @@
* http://www.fltk.org/str.php
*/
/*
* Important note: this header file includes '<config.h>' !
*
* This header MUST NOT be included in public headers (i.e. in 'FL/') and
* SHOULD NOT be included in test and demo programs (i.e. in 'test/' or
* 'examples/') because it includes '<config.h>'.
*/
#ifndef flstring_h
# define flstring_h

View File

@ -3,7 +3,7 @@
//
// Menubar test program for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2018 by Bill Spitzak and others.
// Copyright 1998-2020 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
@ -29,7 +29,6 @@
#include <FL/Fl_Value_Slider.H>
#include <stdio.h>
#include <stdlib.h>
#include "../src/flstring.h"
#include <FL/fl_draw.H>
#include <FL/Fl_Simple_Terminal.H>
#include <FL/fl_ask.H>