From: heister Date: Wed, 20 Feb 2013 01:08:06 +0000 (+0000) Subject: Fix for windows build, I hope this also works under Linux X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff5dcdfcbdd3634c4ccdb2d67f2f8c03c7e9070c;p=dealii-svn.git Fix for windows build, I hope this also works under Linux git-svn-id: https://svn.dealii.org/branches/branch_cmake@28488 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/scripts/make_dependencies.cc b/deal.II/cmake/scripts/make_dependencies.cc index 7f105ea77b..800c2e7df9 100644 --- a/deal.II/cmake/scripts/make_dependencies.cc +++ b/deal.II/cmake/scripts/make_dependencies.cc @@ -75,7 +75,7 @@ bool file_exists(const std::string & file) int error = stat (file.c_str(), &buf); return ((error == 0) && - S_ISREG(buf.st_mode)); + (buf.st_mode & S_IFMT == S_IFREG)); }