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>
This commit is contained in:
Anton Lundin 2014-01-16 11:17:06 +01:00 committed by Dirk Hohndel
parent 2c8e8f8cec
commit 6014461181

View file

@ -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;