Merge pull request #41 from gansb/master

std::istream used but not declared.
This commit is contained in:
Daniel Marjamäki 2011-10-22 00:54:04 -07:00
commit cde95d09a3
3 changed files with 3 additions and 2 deletions

View File

@ -96,7 +96,7 @@ std::string Path::simplifyPath(const char *originalPath)
bool Path::sameFileName(const std::string &fname1, const std::string &fname2)
{
#if defined(__linux__) || defined(__sun)
#if defined(__linux__) || defined(__sun) || defined(__hpux)
return bool(fname1 == fname2);
#elif defined(__GNUC__)
return bool(strcasecmp(fname1.c_str(), fname2.c_str()) == 0);

View File

@ -686,7 +686,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
// create variable symbol table
_variableList.resize(_tokenizer->varIdCount() + 1);
fill_n(_variableList.begin(), _variableList.size(), (const Variable*)NULL);
std::fill_n(_variableList.begin(), _variableList.size(), (const Variable*)NULL);
// check all scopes for variables
for (it = scopeList.begin(); it != scopeList.end(); ++it) {

View File

@ -27,6 +27,7 @@
#include <list>
#include <vector>
#include <set>
#include <iosfwd>
class Token;
class ErrorLogger;