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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue