[PATCH 6/8] cgit.h: move stdbool.h from ui-shared.h

John Keeping john at keeping.me.uk
Thu Aug 13 13:14:18 CEST 2015


Follow the Git policy of including system headers in only one place.

Signed-off-by: John Keeping <john at keeping.me.uk>
---
 cgit.h      | 2 ++
 ui-shared.h | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cgit.h b/cgit.h
index 3120562..508179a 100644
--- a/cgit.h
+++ b/cgit.h
@@ -3,6 +3,8 @@
 
 
 #include <git-compat-util.h>
+#include <stdbool.h>
+
 #include <cache.h>
 #include <grep.h>
 #include <object.h>
diff --git a/ui-shared.h b/ui-shared.h
index 788b1bc..d8a3551 100644
--- a/ui-shared.h
+++ b/ui-shared.h
@@ -1,8 +1,6 @@
 #ifndef UI_SHARED_H
 #define UI_SHARED_H
 
-#include <stdbool.h>
-
 extern const char *cgit_httpscheme();
 extern const char *cgit_hosturl();
 extern const char *cgit_rooturl();
-- 
2.5.0.466.g9af26fa



More information about the CGit mailing list