aboutsummaryrefslogtreecommitdiffstats
path: root/core/pref.h
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-11-24 11:51:13 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-24 07:56:10 -0800
commitf3c06279f1d0c76384dd0f30617a603cf9ea3a76 (patch)
tree47e44609b63e480ff8211c4444fe6c50d8068c4b /core/pref.h
parentbd8830672269297f7030670e10f2191ac824093f (diff)
downloadsubsurface-f3c06279f1d0c76384dd0f30617a603cf9ea3a76.tar.gz
Include stdbool.h also from prefs.h if included from C file
Currently not mandatory in our code because we never include prefs.h from a C file today but for the future this could avoid confusion. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/pref.h')
-rw-r--r--core/pref.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/pref.h b/core/pref.h
index c4989e692..198d4b9fe 100644
--- a/core/pref.h
+++ b/core/pref.h
@@ -4,6 +4,8 @@
#ifdef __cplusplus
extern "C" {
+#else
+#include <stdbool.h>
#endif
#include "units.h"