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
This commit is contained in:
Manolo Gouy 2014-12-20 15:00:27 +00:00
parent a60e5400e2
commit 09230a9878
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -26,6 +26,8 @@
#include "../src/flstring.h"
#include <stdarg.h>
#include "alignment_panel.h"
#include <FL/Fl.H>
#include "Fl_Widget_Type.h"
////////////////////////////////////////////////////////////////
// BASIC FILE WRITING:
@ -292,9 +294,6 @@ const char *read_word(int wantbrace) {
////////////////////////////////////////////////////////////////
#include <FL/Fl.H>
#include "Fl_Widget_Type.h"
// global int variables:
extern int i18n_type;
extern const char* i18n_include;