diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-02-15 20:25:18 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-15 13:26:51 -0800 |
commit | c45768a09ffcc6393912b74ed3661b5a110041e8 (patch) | |
tree | e0f322e344a337abd4d9aa40e85e21a58c65af5e /version.c | |
parent | f6dbed1fc6c71251e1937cb1b63e96ff7a8251c3 (diff) | |
download | subsurface-c45768a09ffcc6393912b74ed3661b5a110041e8.tar.gz |
add and use a version.c / version.h pair
version.c is now object code which is recompiled each time
ssrf-version.h changes, while the interface file version.h
remains that same at all times and files which include it
will not need to be recompiled.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'version.c')
-rw-r--r-- | version.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/version.c b/version.c new file mode 100644 index 000000000..5b54bf4c7 --- /dev/null +++ b/version.c @@ -0,0 +1,16 @@ +#include "ssrf-version.h" + +const char *subsurface_version(void) +{ + return VERSION_STRING; +} + +const char *subsurface_git_version(void) +{ + return GIT_VERSION_STRING; +} + +const char *subsurface_canonical_version(void) +{ + return CANONICAL_VERSION_STRING; +} |