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
|
||||
* 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
|
||||
* 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)
|
||||
{
|
||||
#ifdef __BORLANDC__
|
||||
struct ffblk ffblk;
|
||||
int ret = findfirst(path.c_str(), &ffblk, FA_DIREC);
|
||||
if (ret == 0)
|
||||
findclose(&ffblk);
|
||||
return !ret;
|
||||
#else
|
||||
// See http://msdn.microsoft.com/en-us/library/bb773621(VS.85).aspx
|
||||
return PathIsDirectory(path.c_str());
|
||||
#endif
|
||||
#ifdef __BORLANDC__
|
||||
struct ffblk ffblk;
|
||||
int ret = findfirst(path.c_str(), &ffblk, FA_DIREC);
|
||||
if (ret == 0)
|
||||
findclose(&ffblk);
|
||||
return !ret;
|
||||
#else
|
||||
// See http://msdn.microsoft.com/en-us/library/bb773621(VS.85).aspx
|
||||
return PathIsDirectory(path.c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
static HANDLE MyFindFirstFile(std::string path, LPWIN32_FIND_DATA findData)
|
||||
|
|
Loading…
Reference in New Issue