core: convert version.c to C++

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-04-23 15:13:56 +08:00
parent 4ee5d08a46
commit c84e0aa1c3
3 changed files with 4 additions and 5 deletions

View file

@ -78,7 +78,7 @@ SOURCES += subsurface-mobile-main.cpp \
core/statistics.c \
core/worldmap-save.cpp \
core/libdivecomputer.cpp \
core/version.c \
core/version.cpp \
core/save-git.cpp \
core/datatrak.cpp \
core/ostctools.c \

View file

@ -195,7 +195,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
uploadDiveShare.h
uploadDiveLogsDE.cpp
uploadDiveLogsDE.h
version.c
version.cpp
version.h
videoframeextractor.cpp
videoframeextractor.h

View file

@ -2,13 +2,12 @@
#include "ssrf-version.h"
// let's leave the two redundant functions in case we change our minds on git SHAs
const char *subsurface_git_version(void)
extern "C" const char *subsurface_git_version(void)
{
return CANONICAL_VERSION_STRING_4;
}
const char *subsurface_canonical_version(void)
extern "C" const char *subsurface_canonical_version(void)
{
return CANONICAL_VERSION_STRING;
}