summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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__)