From 716e7b18f3c223ae8c7222d4c5a5588636b4c062 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 4 Aug 2019 09:35:42 +0200 Subject: Better definition of 'struct dirent' for the MinGW32 compiler --- FL/platform_types.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FL/platform_types.h b/FL/platform_types.h index 771f611a9..c13448614 100644 --- a/FL/platform_types.h +++ b/FL/platform_types.h @@ -116,7 +116,11 @@ typedef int FL_SOCKET; # endif typedef struct HGLRC__ *GLContext; #include -struct dirent {char d_name[1];}; +#ifdef __MINGW32__ +# include +#else + struct dirent {char d_name[1];}; +#endif #elif defined(__ANDROID__) -- cgit v1.2.3