summaryrefslogtreecommitdiffstats
path: root/core/units.h
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-11-21 15:52:01 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-24 07:56:10 -0800
commitbd8830672269297f7030670e10f2191ac824093f (patch)
tree36bea72af67273a7516a8d473616995b5bef96b7 /core/units.h
parent178dcbc0c693fc1d7b9bf3988ec2f3ac5ff3f2f3 (diff)
downloadsubsurface-bd8830672269297f7030670e10f2191ac824093f.tar.gz
Change prefs.show_units_table to bool
Bool is the correct choice for this option. int was used before because it was not clear to me how and if I can use bool in this C file. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/units.h')
-rw-r--r--core/units.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/units.h b/core/units.h
index ff1ae3430..21f646f79 100644
--- a/core/units.h
+++ b/core/units.h
@@ -9,6 +9,8 @@
#ifdef __cplusplus
extern "C" {
+#else
+#include <stdbool.h>
#endif
#define O2_IN_AIR 209 // permille
@@ -263,7 +265,7 @@ struct units {
MINUTES_ONLY,
ALWAYS_HOURS
} duration_units;
- int show_units_table;
+ bool show_units_table;
};
/*