Better definition of 'struct dirent' for the MinGW32 compiler

This commit is contained in:
ManoloFLTK 2019-08-04 09:35:42 +02:00
parent 84c5523f99
commit 716e7b18f3

View File

@ -116,7 +116,11 @@ typedef int FL_SOCKET;
# endif
typedef struct HGLRC__ *GLContext;
#include <sys/stat.h>
struct dirent {char d_name[1];};
#ifdef __MINGW32__
# include <dirent.h>
#else
struct dirent {char d_name[1];};
#endif
#elif defined(__ANDROID__)