mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
core: convert version.c to C++
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e3f6496f59
commit
0b817e468a
3 changed files with 4 additions and 5 deletions
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in a new issue