mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-02 23:20:20 +00:00
Fix compilation with C99
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
67a45a44e1
commit
d4bdb8c73d
1 changed files with 2 additions and 2 deletions
4
dive.h
4
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
|
/* 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)
|
* 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) */
|
* 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;
|
double specific_weight;
|
||||||
int mbar = surface_pressure.mbar;
|
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;
|
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);
|
return calculate_depth_to_mbar(depth, dive->surface_pressure, dive->salinity);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue