diff options
author | Eli Zaretskii <eliz@gnu.org> | 2010-07-24 08:27:50 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2010-07-24 08:27:50 +0000 |
commit | 59691939f93130491768297080773d91aaa3a3d0 (patch) | |
tree | c23df9687a1ec1f2b1e45aafba60a8b3352e5658 /job.c | |
parent | e954532d486696bad8199c2c46d063a50c764fa8 (diff) | |
download | gunmake-59691939f93130491768297080773d91aaa3a3d0.tar.gz |
job.c
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |