From 60144611813bbe412417b231909d9ddf044f8705 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 16 Jan 2014 11:17:06 +0100 Subject: [PATCH] Don't include stdbool.h when included from C++ As noted by Thiago Macieira, we shouldn't include stdbool.h when were included from a C++-file such as main.cpp Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- subsurfacestartup.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsurfacestartup.h b/subsurfacestartup.h index e5d7750f7..b09556fa1 100644 --- a/subsurfacestartup.h +++ b/subsurfacestartup.h @@ -4,10 +4,11 @@ #include "dive.h" #include "divelist.h" #include "libdivecomputer.h" -#include #ifdef __cplusplus extern "C" { +#else +#include #endif extern bool imported;