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:
Berthold Stoeger 2024-05-04 17:55:50 +02:00 committed by bstoeger
parent 9065bf8622
commit 03b910ee7f
55 changed files with 37 additions and 347 deletions

View file

@ -5,10 +5,9 @@
#include "units.h"
#include "gas.h"
#include "divemode.h"
#include <memory>
#ifdef __cplusplus
extern "C" {
#endif
struct dive;
struct divecomputer;
@ -70,12 +69,8 @@ extern double regressionb(const struct deco_state *ds);
extern void reset_regression(struct deco_state *ds);
extern void update_regression(struct deco_state *ds, const struct dive *dive);
#ifdef __cplusplus
}
// C++ only functions
#include <memory>
struct deco_state_cache {
// Test if there is cached data
operator bool () {
@ -87,6 +82,4 @@ private:
std::unique_ptr<deco_state> data;
};
#endif
#endif // DECO_H