util: fix the check for non-C99 compilers (issue4605) stable
authorKevin Bullock <kbullock@ringworld.org>
Mon, 20 Apr 2015 22:21:57 -0500
branchstable
changeset 24829 8e9f8d2a2c0c
parent 24828 5045a003260b
child 24830 abe835fc4a79
util: fix the check for non-C99 compilers (issue4605)
mercurial/util.h
--- 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;