Mercurial > hg
comparison mercurial/util.h @ 24442:98042b0e19f9
manifest: move C bool polyfill into util.h
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 25 Mar 2015 14:16:10 -0500 |
parents | fb93721cc229 |
children | 539b3c7eea44 |
comparison
equal
deleted
inserted
replaced
24441:e2ed40f0eb2e | 24442:98042b0e19f9 |
---|---|
207 } | 207 } |
208 memcpy(&ret, &t, sizeof(t)); | 208 memcpy(&ret, &t, sizeof(t)); |
209 return ret; | 209 return ret; |
210 } | 210 } |
211 | 211 |
212 /* VC9 doesn't include bool and lacks stdbool.h based on my searching */ | |
213 #ifdef _MSC_VER | |
214 #define true 1 | |
215 #define false 0 | |
216 typedef unsigned char bool; | |
217 #else | |
218 #include <stdbool.h> | |
219 #endif | |
220 | |
212 #endif /* _HG_UTIL_H_ */ | 221 #endif /* _HG_UTIL_H_ */ |