summaryrefslogtreecommitdiff
path: root/fluid/code.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2022-01-08 21:55:19 +0100
committerMatthias Melcher <github@matthiasm.com>2022-01-08 22:12:41 +0100
commit42a93eb8dec6e3c637442e23e156b3f72c7f8ca7 (patch)
treed3edd493518ff7a78a2e733dadb98d07a1fec753 /fluid/code.cxx
parent9a2b3ef798d0baf4228b69b941b7cdb25aca6ab6 (diff)
avoid early include of Fl.H option
Diffstat (limited to 'fluid/code.cxx')
-rw-r--r--fluid/code.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/fluid/code.cxx b/fluid/code.cxx
index da40970bf..7de06ea00 100644
--- a/fluid/code.cxx
+++ b/fluid/code.cxx
@@ -584,7 +584,9 @@ int write_code(const char *s, const char *t) {
fprintf(header_file, "#define %s\n", define_name);
}
- write_declare("#include <FL/Fl.H>");
+ if (avoid_early_includes==0) {
+ write_declare("#include <FL/Fl.H>");
+ }
if (t && include_H_from_C) {
if (*header_file_name == '.' && strchr(header_file_name, '/') == NULL) {
write_c("#include \"%s\"\n", fl_filename_name(t));