Unify Makefile

The source now identifies the operating system with the help of
macros defined by GCC.

The macros are documented here:
http://sourceforge.net/p/predef/wiki/OperatingSystems/

This patch was inspired by a suggestion from Max Justicz.
This commit is contained in:
Michel Machado
2014-08-12 07:57:40 -04:00
parent ba4d0a3fd8
commit 66be2fddb9
4 changed files with 6 additions and 28 deletions

View File

@@ -54,7 +54,7 @@ static void validate_file(const char *path, int number,
full_fn_from_number(full_fn, &filename, path, number);
printf("Validating file %s ... %s", filename, progress ? BLANK : "");
fflush(stdout);
#ifdef CYGWIN
#ifdef __CYGWIN__
/* We don't need write access, but some kernels require that
* the file descriptor passed to fdatasync(2) to be writable.
*/