diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-06 15:20:31 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-06 09:59:00 -0800 |
commit | 5d758524be39689b8b1f0905bc843e175c1f57cb (patch) | |
tree | f77cf392019dcf480c391c245c7b6ca37bc322e6 /subsurface-core/profile.h | |
parent | 788b3289e9072bef4311c047e7b447fed11e8f46 (diff) | |
download | subsurface-5d758524be39689b8b1f0905bc843e175c1f57cb.tar.gz |
profile.h: fix incomplete type
ruleritem.cpp throws an error about incomplete type
'struct gas_pressures'.
'struct gas_pressures' is defined in dive.h, so every header
that has usage of the type needs to include dive.h.
Such a header is profile.h which has 'struct gas_pressures pressures'
in 'struct plot_data', by including dive.h on top of profile.h
every source file (e.g. ruleritem.cpp) that includes profile.h will
now receive knowledge of a complete 'struct gas_pressures' type.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/profile.h')
-rw-r--r-- | subsurface-core/profile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subsurface-core/profile.h b/subsurface-core/profile.h index a6dbfcf5f..71929f8e3 100644 --- a/subsurface-core/profile.h +++ b/subsurface-core/profile.h @@ -5,6 +5,8 @@ extern "C" { #endif +#include "dive.h" + typedef enum { STABLE, SLOW, |