summaryrefslogtreecommitdiffstats
path: root/src/version.h
diff options
context:
space:
mode:
authorSimon Rettberg2014-01-13 12:22:03 +0100
committerSimon Rettberg2014-01-13 12:22:03 +0100
commitd2adcf51505484efd164d6c867a8157061d1ff29 (patch)
tree73a8dba7435b7b3019e03384c0a2b5dd787aefc0 /src/version.h
parent[SERVER] Add example config (diff)
downloaddnbd3-d2adcf51505484efd164d6c867a8157061d1ff29.tar.gz
dnbd3-d2adcf51505484efd164d6c867a8157061d1ff29.tar.xz
dnbd3-d2adcf51505484efd164d6c867a8157061d1ff29.zip
[*] Add automatic version string generationv2.0
Diffstat (limited to 'src/version.h')
-rw-r--r--src/version.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/version.h b/src/version.h
index 60246b7..0c4a66b 100644
--- a/src/version.h
+++ b/src/version.h
@@ -21,7 +21,10 @@
#ifndef VERSION_H_
#define VERSION_H_
-#define VERSION_STRING "1.0.0"
-#define VERSION_NUMBER 100
+extern const char *VERSION_STRING;
+
+// This is done in a little weird way but otherwise eclipse complains about
+// unresolvable symbols etc...
+#include "version.c"
#endif /* VERSION_H_ */