If you use Dev-C++ and FLTK, you might want to know that including both the ANSC C lib header
dirent.h AND the FLTK header
Fl_File_Chooser.H you will generate an error, that the
struct dirent is being redifined.
Look for these lines in
filename.H (an FLTK header file) at about line 55.
# if defined(WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__)
struct dirent {char d_name[1];};
Add this to the end: [
&& !defined(__DEV_CPP__) ]
# if defined(WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__) && !defined(__DEV_CPP__)
struct dirent {char d_name[1];};
Now all you have to do is make sure you add the following line early in your pre-processor code, before Fl_File_Chooser.H. This has already been added to LaserBoy_macros.hpp, in the most current version of the code.
#define __DEV_CPP__ // to resolve FLTK dirent.h conflict
And it will work without breaking the code for any other compiler!
James.