ivansafrin/Polycode — Issue #39: MinGW: "struct dirent has no member named d_type"
Author: tjohnman
Created: 2011-10-11 03:03:09+00:00
State: open

The MinGW implementation of dirent that comes with CodeBlocks 10.05 has no member d_type, which is used in OSBasics.cpp. This makes building Polycode under MinGW fail.

The struct is defined as follows:

struct dirent
{
long	d_ino;	/* Always zero. */
unsigned short	d_reclen;	/* Always zero. */
unsigned short	d_namlen;	/* Length of name in d_name. */
char	d_name[FILENAME_MAX]; /* File name. */
};