From 09230a9878ea780ada3e807c5263b586a7aeda0d Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 20 Dec 2014 15:00:27 +0000 Subject: Removed compilation warning when compiling fluid/file.cxx on apple. Also, added explanatory comment of the purpose of a GNUC-specific attribute in FL/fl_ask.H git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/fl_ask.H | 2 ++ fluid/file.cxx | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/FL/fl_ask.H b/FL/fl_ask.H index a3713e0c1..ad1b7b236 100644 --- a/FL/fl_ask.H +++ b/FL/fl_ask.H @@ -39,6 +39,8 @@ enum Fl_Beep { }; # ifdef __GNUC__ +/* the GNUC-specific attribute appearing below in prototypes with a variable list of arguments + helps detection of mismatches between format string and argument list at compilation time */ # define __fl_attr(x) __attribute__ (x) # else # define __fl_attr(x) diff --git a/fluid/file.cxx b/fluid/file.cxx index 128c8e12a..f4cf18c1c 100644 --- a/fluid/file.cxx +++ b/fluid/file.cxx @@ -26,6 +26,8 @@ #include "../src/flstring.h" #include #include "alignment_panel.h" +#include +#include "Fl_Widget_Type.h" //////////////////////////////////////////////////////////////// // BASIC FILE WRITING: @@ -292,9 +294,6 @@ const char *read_word(int wantbrace) { //////////////////////////////////////////////////////////////// -#include -#include "Fl_Widget_Type.h" - // global int variables: extern int i18n_type; extern const char* i18n_include; -- cgit v1.2.3