Mercurial > hg
diff mercurial/util.h @ 24829:8e9f8d2a2c0c stable
util: fix the check for non-C99 compilers (issue4605)
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Mon, 20 Apr 2015 22:21:57 -0500 |
parents | 3550ccbafca2 |
children | 80d28a88137f |
line wrap: on
line diff
--- a/mercurial/util.h Mon Apr 20 18:44:57 2015 -0700 +++ b/mercurial/util.h Mon Apr 20 22:21:57 2015 -0500 @@ -218,7 +218,7 @@ #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;