summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-01-16 11:17:06 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-17 05:55:01 +0700
commit60144611813bbe412417b231909d9ddf044f8705 (patch)
tree375e18d2da79f0216f0830ee270954b18ac80e06
parent2c8e8f8cecb16ce34c24ce4099b8ead7a7baea78 (diff)
downloadsubsurface-60144611813bbe412417b231909d9ddf044f8705.tar.gz
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 <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--subsurfacestartup.h3
1 files changed, 2 insertions, 1 deletions
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 <stdbool.h>
#ifdef __cplusplus
extern "C" {
+#else
+#include <stdbool.h>
#endif
extern bool imported;