From 9c70261c0e294d46d62d99725a1ae9ddc01eb1cf Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 1 May 2020 14:07:59 +0200 Subject: cleanup: move declaration of utc_mk* functions to new subsurface-time.h header No point in slurping in all of dive.h for translation units that only want to do some time manipulation without ever touching a dive. Don't call the header "time.h", because we don't want to end up in a confusion with the system header of the same name. Signed-off-by: Berthold Stoeger --- core/xmp_parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/xmp_parser.cpp') diff --git a/core/xmp_parser.cpp b/core/xmp_parser.cpp index 4ce6cef31..8d052b66f 100644 --- a/core/xmp_parser.cpp +++ b/core/xmp_parser.cpp @@ -1,12 +1,11 @@ #include "xmp_parser.h" #include "subsurface-string.h" +#include "subsurface-time.h" #include #include #include -extern "C" timestamp_t utc_mktime(struct tm *tm); // declared in core/dive.h - static timestamp_t parse_xmp_date(const char *date) { // Format: "yyyy-mm-dd[Thh:mm[:ss[.ms]][-05:00]]" -- cgit v1.2.3-70-g09d2