From 255e7fb39b83523c52855809bb9a80f647fe4cff Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 15 Oct 1998 14:19:34 +0000 Subject: Fluid fixes from Vincent PENNE. git-svn-id: file:///fltk/svn/fltk/trunk@12 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/code.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fluid/code.cxx') diff --git a/fluid/code.cxx b/fluid/code.cxx index 171593fff..a8028acc1 100644 --- a/fluid/code.cxx +++ b/fluid/code.cxx @@ -12,6 +12,7 @@ #include #include "Fl_Type.H" +#include "alignment_panel.H" static FILE *code_file; static FILE *header_file; @@ -240,7 +241,8 @@ int write_code(const char *s, const char *t) { for (p = Fl_Type::first; p; p = p->next) p->write_declare(); delete included_root; included_root = 0; - if (t) write_c("#include \"%s\"\n", filename_name(t)); + if (t && include_H_from_C) + write_c("#include \"%s\"\n", filename_name(t)); for (p = Fl_Type::first; p; p = p->next) p->write_static(); for (p = Fl_Type::first; p;) p = write_code(p); -- cgit v1.2.3