[PATCH 1/2] Include stdbool if not used in C++

Salvo 'LtWorf' Tomaselli tiposchi at tiscali.it
Tue Aug 26 10:56:27 PDT 2014


Since the header uses bool type, it is necessary to include it when compiling
in C and not C++
---
 save-html.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/save-html.h b/save-html.h
index f47ae3b..ba26019 100644
--- a/save-html.h
+++ b/save-html.h
@@ -3,6 +3,8 @@
 
 #ifdef __cplusplus
 extern "C" {
+#else
+#include <stdbool.h>
 #endif
 
 #include "dive.h"
-- 
2.1.0



More information about the subsurface mailing list