diff options
-rwxr-xr-x | configure.py | 4 | ||||
-rw-r--r-- | src/build_log.cc | 1 | ||||
-rw-r--r-- | src/win32port.h | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/configure.py b/configure.py index 6fb718f..22aa36a 100755 --- a/configure.py +++ b/configure.py @@ -150,8 +150,8 @@ else: def shell_escape(str): """Escape str such that it's interpreted as a single argument by the shell.""" # This isn't complete, but it's just enough to make NINJA_PYTHON work. - # TODO: do the appropriate thing for Windows-style cmd here, perhaps by - # just returning the input string. + if platform == 'windows': + return str if '"' in str: return "'%s'" % str.replace("'", "\\'") return str diff --git a/src/build_log.cc b/src/build_log.cc index 02a9fb5..5eddf8f 100644 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -235,6 +235,7 @@ bool BuildLog::Load(const string& path, string* err) { if (log_version < kOldestSupportedVersion) { *err = "unable to extract version from build log, perhaps due to " "being too old; you must clobber your build output and rebuild"; + fclose(file); return false; } } diff --git a/src/win32port.h b/src/win32port.h index 97bf817..ce3c949 100644 --- a/src/win32port.h +++ b/src/win32port.h @@ -15,6 +15,8 @@ #ifndef NINJA_WIN32PORT_H_ #define NINJA_WIN32PORT_H_ +typedef signed short int16_t; +typedef unsigned short uint16_t; /// A 64-bit integer type typedef signed long long int64_t; typedef unsigned long long uint64_t; |