diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-01 12:53:43 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-01 09:42:31 -0700 |
commit | c13040798c66c5254fbcc921842cd519da05a4c5 (patch) | |
tree | 52ffa1931f0a51b8c709b02b3b26fcbc0f273f30 /core/dive.h | |
parent | 8ce7c4664a71f86c49091f7ddec10fbc0cccf095 (diff) | |
download | subsurface-c13040798c66c5254fbcc921842cd519da05a4c5.tar.gz |
cleanup: move FRACTION macro from dive.h to units.h
There appears to be no reason to slurp in all dive.h when compiling
membuffer.c. units.h might not seem like the perfect place, but it
is the most fitting I found.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/dive.h b/core/dive.h index 8e9185daa..c9369885a 100644 --- a/core/dive.h +++ b/core/dive.h @@ -396,8 +396,6 @@ extern const char *existing_filename; extern void subsurface_command_line_init(int *, char ***); extern void subsurface_command_line_exit(int *, char ***); -#define FRACTION(n, x) ((unsigned)(n) / (x)), ((unsigned)(n) % (x)) - extern bool is_dc_planner(const struct divecomputer *dc); extern bool has_planned(const struct dive *dive, bool planned); |