mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-05 00:21:29 +00:00
core: convert version.c to C++
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4ee5d08a46
commit
c84e0aa1c3
3 changed files with 4 additions and 5 deletions
|
@ -78,7 +78,7 @@ SOURCES += subsurface-mobile-main.cpp \
|
||||||
core/statistics.c \
|
core/statistics.c \
|
||||||
core/worldmap-save.cpp \
|
core/worldmap-save.cpp \
|
||||||
core/libdivecomputer.cpp \
|
core/libdivecomputer.cpp \
|
||||||
core/version.c \
|
core/version.cpp \
|
||||||
core/save-git.cpp \
|
core/save-git.cpp \
|
||||||
core/datatrak.cpp \
|
core/datatrak.cpp \
|
||||||
core/ostctools.c \
|
core/ostctools.c \
|
||||||
|
|
|
@ -195,7 +195,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
|
||||||
uploadDiveShare.h
|
uploadDiveShare.h
|
||||||
uploadDiveLogsDE.cpp
|
uploadDiveLogsDE.cpp
|
||||||
uploadDiveLogsDE.h
|
uploadDiveLogsDE.h
|
||||||
version.c
|
version.cpp
|
||||||
version.h
|
version.h
|
||||||
videoframeextractor.cpp
|
videoframeextractor.cpp
|
||||||
videoframeextractor.h
|
videoframeextractor.h
|
||||||
|
|
|
@ -2,13 +2,12 @@
|
||||||
#include "ssrf-version.h"
|
#include "ssrf-version.h"
|
||||||
|
|
||||||
// let's leave the two redundant functions in case we change our minds on git SHAs
|
// 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;
|
return CANONICAL_VERSION_STRING_4;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *subsurface_canonical_version(void)
|
extern "C" const char *subsurface_canonical_version(void)
|
||||||
{
|
{
|
||||||
return CANONICAL_VERSION_STRING;
|
return CANONICAL_VERSION_STRING;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue