summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-08-04 09:35:42 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-08-04 09:35:42 +0200
commit716e7b18f3c223ae8c7222d4c5a5588636b4c062 (patch)
treef00293e3be80d075e337a8244d7e6bbfe1fb5ed6
parent84c5523f9972bca13a70b996e0c25cb121e053c0 (diff)
Better definition of 'struct dirent' for the MinGW32 compiler
-rw-r--r--FL/platform_types.h6
1 files changed, 5 insertions, 1 deletions
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 <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__)