From 066e03b00a52f45439837a0f60a5fa20a55acd43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 4 Jan 2009 18:46:45 +0000 Subject: [PATCH] MinGW: Applied the patch submitted by kidkat that makes cppcheck compilable with MinGW --- filelister.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ) {