diff --git a/filelister.cpp b/filelister.cpp index bc1c80e42..02a47b17d 100644 --- a/filelister.cpp +++ b/filelister.cpp @@ -23,11 +23,11 @@ #include #include -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__MINGW32__) #include #include #endif -#if defined(__BORLANDC__) || defined(_MSC_VER) +#if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__) #include #endif @@ -110,7 +110,7 @@ bool FileLister::AcceptFile( const std::string &filename ) ////// This code is for __GNUC__ only ///////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__MINGW32__) // gcc / cygwin.. void FileLister::RecursiveAddFiles( std::vector &filenames, const std::string &path, bool recursive ) { @@ -150,7 +150,7 @@ void FileLister::RecursiveAddFiles( std::vector &filenames, const s ////// This code is for Borland C++ and Visual C++ //////////////////////////// /////////////////////////////////////////////////////////////////////////////// -#if defined(__BORLANDC__) || defined(_MSC_VER) +#if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__) void FileLister::RecursiveAddFiles( std::vector &filenames, const std::string &path, bool recursive ) {