mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 06:14:28 +08:00
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:
+10
-1
@@ -2,8 +2,9 @@
|
|||||||
* "$Id$"
|
* "$Id$"
|
||||||
*
|
*
|
||||||
* Common string header file for the Fast Light Tool Kit (FLTK).
|
* 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
|
* 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
|
* the file "COPYING" which should have been included with this file. If this
|
||||||
@@ -16,6 +17,14 @@
|
|||||||
* http://www.fltk.org/str.php
|
* 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
|
#ifndef flstring_h
|
||||||
# define flstring_h
|
# define flstring_h
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
// Menubar test program for the Fast Light Tool Kit (FLTK).
|
// 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
|
// 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
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@@ -29,7 +29,6 @@
|
|||||||
#include <FL/Fl_Value_Slider.H>
|
#include <FL/Fl_Value_Slider.H>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "../src/flstring.h"
|
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
#include <FL/Fl_Simple_Terminal.H>
|
#include <FL/Fl_Simple_Terminal.H>
|
||||||
#include <FL/fl_ask.H>
|
#include <FL/fl_ask.H>
|
||||||
|
|||||||
Reference in New Issue
Block a user