summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/exportfuncs.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/exportfuncs.cpp b/core/exportfuncs.cpp
index e05cdcb33..839c0bf1d 100644
--- a/core/exportfuncs.cpp
+++ b/core/exportfuncs.cpp
@@ -8,6 +8,7 @@
#include "core/file.h"
#include "core/errorhelper.h"
#include "core/divefilter.h"
+#include "core/divesite.h"
#include "exportfuncs.h"
@@ -300,6 +301,12 @@ std::vector<const dive_site *> exportFuncs::getDiveSitesToExport(bool selectedOn
continue;
res.push_back(ds);
}
+#else
+ /* walk the dive site list */
+ int i;
+ const struct dive_site *ds;
+ for_each_dive_site (i, ds, &dive_site_table)
+ res.push_back(get_dive_site(i, &dive_site_table));
#endif
return res;
}