]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix for windows build, I hope this also works under Linux
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Feb 2013 01:08:06 +0000 (01:08 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Feb 2013 01:08:06 +0000 (01:08 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28488 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/scripts/make_dependencies.cc

index 7f105ea77b3b8b4c3f77d48709e9c7cbf1b32756..800c2e7df9fab3b7afec3470e927496f9c9412e2 100644 (file)
@@ -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));
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.