Submitter | Kevin Bullock |
---|---|
Date | April 21, 2015, 3:25 a.m. |
Message ID | <77bc9addabd40918591d.1429586749@billings.lan> |
Download | mbox | patch |
Permalink | /patch/8754/ |
State | Accepted |
Headers | show |
Comments
On Mon, 2015-04-20 at 22:25 -0500, Kevin Bullock wrote: > # HG changeset patch > # User Kevin Bullock <kbullock@ringworld.org> > # Date 1429586517 18000 > # Mon Apr 20 22:21:57 2015 -0500 > # Branch stable > # Node ID 77bc9addabd40918591d5bbe6c0ef9d2f1d80191 > # Parent 4e175c0421e4d17ece1fd42ba9c31d8bd73bd9a9 > util: fix the check for non-C99 compilers (issue4605) Queued for stable, thanks.
Patch
diff --git a/mercurial/util.h b/mercurial/util.h --- a/mercurial/util.h +++ b/mercurial/util.h @@ -218,7 +218,7 @@ enum normcase_spec { #define MIN(a, b) (((a)<(b))?(a):(b)) /* VC9 doesn't include bool and lacks stdbool.h based on my searching */ -#ifdef _MSC_VER || __STDC_VERSION__ < 199901L +#if defined(_MSC_VER) || __STDC_VERSION__ < 199901L #define true 1 #define false 0 typedef unsigned char bool;