gcc config
[prop.git] / prop-src / automake.cc
blob24af3e5d19a3a16adb78eade9012c82a82b35dcb
1 #include <time.h>
2 #include <sys/types.h>
3 #include <sys/stat.h>
4 #include <stdlib.h>
5 #include <stdio.h>
6 #include "basics.h"
8 Bool out_of_date (const char * filename, struct stat& target)
10 struct stat source;
11 if (stat(filename, &source))
12 { perror(filename); return true; }
13 double d = difftime(source.st_mtime,target.st_mtime);
14 return d > 0.0;