summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreliz <>2010-07-24 08:27:50 +0000
committereliz <>2010-07-24 08:27:50 +0000
commit16ddb3f64d57c89c479ff2d847d54e00f48ceee6 (patch)
tree3ae1140870d43dc44705fbf6b95f0d4efbc42043
parent728f63cf1e5de14b423cb2d642d90f563a3186bf (diff)
downloadmake-16ddb3f64d57c89c479ff2d847d54e00f48ceee6.tar.gz
job.c
-rw-r--r--job.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/job.c b/job.c
index de4f79e0..aacfb844 100644
--- a/job.c
+++ b/job.c
@@ -192,7 +192,9 @@ static const char *
pid2str (pid_t pid)
{
static char pidstring[100];
-#ifdef WINDOWS32
+#if defined(WINDOWS32) && (__GNUC__ > 3 || _MSC_VER > 1300)
+ /* %Id is only needed for 64-builds, which were not supported by
+ older versions of Windows compilers. */
sprintf (pidstring, "%Id", pid);
#else
sprintf (pidstring, "%lu", (unsigned long) pid);