From: Eli Zaretskii Date: Sat, 24 Jul 2010 08:27:50 +0000 (+0000) Subject: job.c X-Git-Tag: 3.82~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59691939f93130491768297080773d91aaa3a3d0;p=thirdparty%2Fmake.git job.c --- 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);