mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove __cplusplus ifdefs
Since all source files are now C++, this is redundant. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9065bf8622
commit
03b910ee7f
55 changed files with 37 additions and 347 deletions
|
@ -5,11 +5,7 @@
|
|||
#include "divemode.h"
|
||||
#include "units.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#else
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
enum gas_component { N2, HE, O2 };
|
||||
|
||||
|
@ -60,11 +56,9 @@ static inline int get_n2(struct gasmix mix)
|
|||
|
||||
int pscr_o2(const double amb_pressure, struct gasmix mix);
|
||||
|
||||
#ifdef __cplusplus
|
||||
struct gas_pressures {
|
||||
double o2 = 0.0, n2 = 0.0, he = 0.0;
|
||||
};
|
||||
#endif
|
||||
|
||||
extern void sanitize_gasmix(struct gasmix *mix);
|
||||
extern int gasmix_distance(struct gasmix a, struct gasmix b);
|
||||
|
@ -77,8 +71,6 @@ extern enum gastype gasmix_to_type(struct gasmix mix);
|
|||
extern const char *gastype_name(enum gastype type);
|
||||
extern fraction_t make_fraction(int f);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue