diff options
Diffstat (limited to 'core/units.c')
-rw-r--r-- | core/units.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/units.c b/core/units.c index df6ca5f07..59c09e4dc 100644 --- a/core/units.c +++ b/core/units.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include "units.h" #include "gettext.h" +#include "pref.h" int get_pressure_units(int mb, const char **units) { @@ -168,3 +169,8 @@ double get_weight_units(unsigned int grams, int *frac, const char **units) *units = unit; return value; } + +const struct units *get_units() +{ + return &prefs.units; +} |