summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0bbf3b6)
raw | patch | inline | side by side (parent: 0bbf3b6)
author | ishmal <ishmal@users.sourceforge.net> | |
Fri, 2 Mar 2007 16:46:19 +0000 (16:46 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Fri, 2 Mar 2007 16:46:19 +0000 (16:46 +0000) |
buildtool.cpp | patch | blob | history |
diff --git a/buildtool.cpp b/buildtool.cpp
index e2c28b4c0e56204bb76f5b3c976637ab44a8e881..5a53f745a97ed3f17d8bb7a4b2f051cd47b665eb 100644 (file)
--- a/buildtool.cpp
+++ b/buildtool.cpp
* btool
* or
* btool {target}
+ *
+ * Note: recent win32api builds from MinGW have gettimeofday()
+ * defined, so you might need to build with
+ * g++ -O3 -DHAVE_GETTIMEOFDAY buildtool.cpp -o btool.exe
+ *
*/
-
+#define BUILDTOOL_VERSION "BuildTool v0.6.2, 2007 Bob Jamison"
#include <stdio.h>
#include <unistd.h>
//########################################################################
//# Definition of gettimeofday() for those who don't have it
//########################################################################
-#ifdef __WIN32__
+#ifndef HAVE_GETTIMEOFDAY
#include <sys/timeb.h>
+
struct timezone {
int tz_minuteswest; /* minutes west of Greenwich */
int tz_dsttime; /* type of dst correction */
}
return 0;
}
+
#endif
for (unsigned int i=0 ; i<bytesRead ; i++)
errbuf.push_back(readBuf[i]);
}
+ }
+ while (true)
+ {
//trace("## stdout");
+ DWORD avail;
if (!PeekNamedPipe(stdoutRead, NULL, 0, NULL, &avail, NULL))
break;
if (avail > 0)
*
*/
virtual String version()
- { return "BuildTool v0.6.1, 2006 Bob Jamison"; }
+ { return BUILDTOOL_VERSION; }
/**
* Overload a <property>