Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
24828:5045a003260b | 24829:8e9f8d2a2c0c |
---|---|
216 NORMCASE_OTHER = 0 | 216 NORMCASE_OTHER = 0 |
217 }; | 217 }; |
218 | 218 |
219 #define MIN(a, b) (((a)<(b))?(a):(b)) | 219 #define MIN(a, b) (((a)<(b))?(a):(b)) |
220 /* VC9 doesn't include bool and lacks stdbool.h based on my searching */ | 220 /* VC9 doesn't include bool and lacks stdbool.h based on my searching */ |
221 #ifdef _MSC_VER || __STDC_VERSION__ < 199901L | 221 #if defined(_MSC_VER) || __STDC_VERSION__ < 199901L |
222 #define true 1 | 222 #define true 1 |
223 #define false 0 | 223 #define false 0 |
224 typedef unsigned char bool; | 224 typedef unsigned char bool; |
225 #else | 225 #else |
226 #include <stdbool.h> | 226 #include <stdbool.h> |