From f2cdca7bccfcdfa04639600689b2b13b38b56898 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 3 Mar 2019 22:55:18 +0100 Subject: Cleanup: move declaration of get_stylesheet() to qthelper.h The function is defined in qthelper.c and thus not all users of dive.h have to suck in the xslt headers. Signed-off-by: Berthold Stoeger --- core/dive.h | 4 ---- core/errorhelper.c | 1 + core/qthelper.h | 3 +++ core/uemis-downloader.c | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/dive.h b/core/dive.h index 068b36810..fd03bc4ae 100644 --- a/core/dive.h +++ b/core/dive.h @@ -13,8 +13,6 @@ #include #include #include "divesite.h" -#include -#include #include "units.h" @@ -507,8 +505,6 @@ extern bool subsurface_user_is_root(void); extern timestamp_t get_times(); -extern xsltStylesheetPtr get_stylesheet(const char *name); - extern timestamp_t utc_mktime(struct tm *tm); extern void utc_mkdate(timestamp_t, struct tm *tm); diff --git a/core/errorhelper.c b/core/errorhelper.c index 5390c4c20..cad595912 100644 --- a/core/errorhelper.c +++ b/core/errorhelper.c @@ -3,6 +3,7 @@ // Clang has a bug on zero-initialization of C structs. #pragma clang diagnostic ignored "-Wmissing-field-initializers" #endif +#include #include "dive.h" #include "membuffer.h" diff --git a/core/qthelper.h b/core/qthelper.h index 3b7ff2c59..2a91df9ef 100644 --- a/core/qthelper.h +++ b/core/qthelper.h @@ -3,6 +3,8 @@ #define QTHELPER_H #include +#include +#include #include "dive.h" #include "divelist.h" @@ -161,6 +163,7 @@ void cache_insert(int tissue, int timestep, enum inertgas gas, double value); void print_qt_versions(); void lock_planner(); void unlock_planner(); +xsltStylesheetPtr get_stylesheet(const char *name); #ifdef __cplusplus } diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c index 30ad972cc..56617a0ae 100644 --- a/core/uemis-downloader.c +++ b/core/uemis-downloader.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3-70-g09d2