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

Lubomir I. Ivanov neolit123 at gmail.com
Tue Aug 26 11:01:13 PDT 2014


On 26 August 2014 20:56, Salvo 'LtWorf' Tomaselli <tiposchi at tiscali.it> wrote:
> 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
>

hello,

this should not be needed as stdbool is already included from dive.h.
does a compiler complains about that?

lubomir
--


More information about the subsurface mailing list