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

@ -11,9 +11,7 @@ extern struct dive *current_dive;
/*** C and C++ functions ***/
#ifdef __cplusplus
extern "C" {
#endif
extern struct dive *first_selected_dive(void);
extern struct dive *last_selected_dive(void);
@ -29,13 +27,10 @@ extern void clear_selection(void);
extern void dump_selection(void);
#endif
#ifdef __cplusplus
}
#endif
/*** C++-only functions ***/
#ifdef __cplusplus
#include <vector>
#include <QVector>
@ -64,6 +59,4 @@ std::vector<dive *> getDiveSelection();
bool diveInSelection(const std::vector<dive *> &selection, const dive *d);
void updateSelection(std::vector<dive *> &selection, const std::vector<dive *> &add, const std::vector<dive *> &remove);
#endif // __cplusplus
#endif // SELECTION_H