From d4bdb8c73d82f41551348b2d3bda14ed0c3310c5 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 16 Sep 2014 17:23:01 -0300 Subject: Fix compilation with C99 Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- dive.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dive.h') diff --git a/dive.h b/dive.h index 47e893ff9..3c32ee8b2 100644 --- a/dive.h +++ b/dive.h @@ -362,7 +362,7 @@ static inline int get_surface_pressure_in_mbar(const struct dive *dive, bool non /* Pa = N/m^2 - so we determine the weight (in N) of the mass of 10m * of water (and use standard salt water at 1.03kg per liter if we don't know salinity) * and add that to the surface pressure (or to 1013 if that's unknown) */ -inline int calculate_depth_to_mbar(int depth, pressure_t surface_pressure, int salinity) +static inline int calculate_depth_to_mbar(int depth, pressure_t surface_pressure, int salinity) { double specific_weight; int mbar = surface_pressure.mbar; @@ -376,7 +376,7 @@ inline int calculate_depth_to_mbar(int depth, pressure_t surface_pressure, int s return mbar; } -inline int depth_to_mbar(int depth, struct dive *dive) +static inline int depth_to_mbar(int depth, struct dive *dive) { return calculate_depth_to_mbar(depth, dive->surface_pressure, dive->salinity); } -- cgit v1.2.3-70-g09d2