summaryrefslogtreecommitdiffstats
path: root/src/ninja_test.cc
diff options
context:
space:
mode:
authorPhilip Craig <philip@pobox.com>2011-05-28 08:28:01 (GMT)
committerPhilip Craig <philip@pobox.com>2011-05-28 08:28:01 (GMT)
commit41a4e2604ba4a4add4dc5f2fd6213ef5c2243ca4 (patch)
tree6324a5ae48a17f8fc77d5bce1a01888dbf22c528 /src/ninja_test.cc
parent511613ce2552528c00719ca59c8b2411518f12db (diff)
downloadNinja-41a4e2604ba4a4add4dc5f2fd6213ef5c2243ca4.zip
Ninja-41a4e2604ba4a4add4dc5f2fd6213ef5c2243ca4.tar.gz
Ninja-41a4e2604ba4a4add4dc5f2fd6213ef5c2243ca4.tar.bz2
Tests now build on a native Windows build (tested with VS2010)
All tests except SubProcess pass on a native Windows build Tests continue not to build on a platform=mingw build
Diffstat (limited to 'src/ninja_test.cc')
-rwxr-xr-x[-rw-r--r--]src/ninja_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ninja_test.cc b/src/ninja_test.cc
index 6e3f549..a5ef3ab 100644..100755
--- a/src/ninja_test.cc
+++ b/src/ninja_test.cc
@@ -217,7 +217,7 @@ TEST_F(StatTest, Middle) {
#ifndef _mktemp_s
/// mingw has no mktemp. Implement one with the same type as the one
/// found in the Windows API.
-int _mktemp_s(const char* templ) {
+int _mktemp_s(char* templ) {
char* ofs = strchr(templ, 'X');
sprintf(ofs, "%d", rand() % 1000000);
return 0;