From 5d758524be39689b8b1f0905bc843e175c1f57cb Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 6 Nov 2015 15:20:31 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- subsurface-core/profile.h | 2 ++ 1 file changed, 2 insertions(+) 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, -- cgit v1.2.3-70-g09d2