##// END OF EJS Templates
util.h: also sniff for C99 before trying to use stdbool.h (issue4605)...
Augie Fackler -
r24823:3550ccba stable
parent child Browse files
Show More
@@ -218,7 +218,7 b' enum normcase_spec {'
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
221 #ifdef _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;
General Comments 0
You need to be logged in to leave comments. Login now