changeset 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 e2ed40f0eb2e
children 539b3c7eea44
files mercurial/manifest.c mercurial/util.h
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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_ */