MinGW: Applied the patch submitted by kidkat that makes cppcheck compilable with MinGW

This commit is contained in:
Daniel Marjamäki 2009-01-04 18:46:45 +00:00
parent 9294e20e96
commit 066e03b00a
1 changed files with 4 additions and 4 deletions

View File

@ -23,11 +23,11 @@
#include <cctype> #include <cctype>
#include <algorithm> #include <algorithm>
#ifdef __GNUC__ #if defined(__GNUC__) && !defined(__MINGW32__)
#include <glob.h> #include <glob.h>
#include <unistd.h> #include <unistd.h>
#endif #endif
#if defined(__BORLANDC__) || defined(_MSC_VER) #if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
#include <windows.h> #include <windows.h>
#endif #endif
@ -110,7 +110,7 @@ bool FileLister::AcceptFile( const std::string &filename )
////// This code is for __GNUC__ only ///////////////////////////////////////// ////// This code is for __GNUC__ only /////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#ifdef __GNUC__ #if defined(__GNUC__) && !defined(__MINGW32__)
// gcc / cygwin.. // gcc / cygwin..
void FileLister::RecursiveAddFiles( std::vector<std::string> &filenames, const std::string &path, bool recursive ) void FileLister::RecursiveAddFiles( std::vector<std::string> &filenames, const std::string &path, bool recursive )
{ {
@ -150,7 +150,7 @@ void FileLister::RecursiveAddFiles( std::vector<std::string> &filenames, const s
////// This code is for Borland C++ and Visual C++ //////////////////////////// ////// 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<std::string> &filenames, const std::string &path, bool recursive ) void FileLister::RecursiveAddFiles( std::vector<std::string> &filenames, const std::string &path, bool recursive )
{ {