line change and encoding fixes
This commit is contained in:
parent
19e5fdb087
commit
f36f3bfae1
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Cppcheck - A tool for static C/C++ code analysis
|
* Cppcheck - A tool for static C/C++ code analysis
|
||||||
* Copyright (C) 2007-2009 Daniel Marjamäki and Cppcheck team.
|
* Copyright (C) 2007-2009 Daniel Marjamäki and Cppcheck team.
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -202,16 +202,16 @@ static HANDLE MyFindFirstFile(std::string path, LPWIN32_FIND_DATA findData)
|
||||||
|
|
||||||
static BOOL MyIsDirectory(std::string path)
|
static BOOL MyIsDirectory(std::string path)
|
||||||
{
|
{
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
struct ffblk ffblk;
|
struct ffblk ffblk;
|
||||||
int ret = findfirst(path.c_str(), &ffblk, FA_DIREC);
|
int ret = findfirst(path.c_str(), &ffblk, FA_DIREC);
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
findclose(&ffblk);
|
findclose(&ffblk);
|
||||||
return !ret;
|
return !ret;
|
||||||
#else
|
#else
|
||||||
// See http://msdn.microsoft.com/en-us/library/bb773621(VS.85).aspx
|
// See http://msdn.microsoft.com/en-us/library/bb773621(VS.85).aspx
|
||||||
return PathIsDirectory(path.c_str());
|
return PathIsDirectory(path.c_str());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static HANDLE MyFindFirstFile(std::string path, LPWIN32_FIND_DATA findData)
|
static HANDLE MyFindFirstFile(std::string path, LPWIN32_FIND_DATA findData)
|
||||||
|
|
Loading…
Reference in New Issue