manifest: move C bool polyfill into util.h
authorMatt Mackall <mpm@selenic.com>
Wed, 25 Mar 2015 14:16:10 -0500
changeset 24442 98042b0e19f9
parent 24441 e2ed40f0eb2e
child 24443 539b3c7eea44
manifest: move C bool polyfill into util.h
mercurial/manifest.c
mercurial/util.h
--- a/mercurial/manifest.c	Wed Mar 25 14:13:11 2015 -0500
+++ b/mercurial/manifest.c	Wed Mar 25 14:16:10 2015 -0500
@@ -14,15 +14,6 @@
 
 #include "util.h"
 
-/* VC9 doesn't include bool and lacks stdbool.h based on my searching */
-#ifdef _MSC_VER
-#define true 1
-#define false 0
-typedef unsigned char bool;
-#else
-#include <stdbool.h>
-#endif
-
 #define DEFAULT_LINES 100000
 
 typedef struct {
--- a/mercurial/util.h	Wed Mar 25 14:13:11 2015 -0500
+++ b/mercurial/util.h	Wed Mar 25 14:16:10 2015 -0500
@@ -209,4 +209,13 @@
 	return ret;
 }
 
+/* VC9 doesn't include bool and lacks stdbool.h based on my searching */
+#ifdef _MSC_VER
+#define true 1
+#define false 0
+typedef unsigned char bool;
+#else
+#include <stdbool.h>
+#endif
+
 #endif /* _HG_UTIL_H_ */